Fix Code

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
nkdinamo
Forum Newbie
Posts: 3
Joined: Fri Aug 14, 2009 4:57 pm

Fix Code

Post by nkdinamo »

I have an issue with a directory i am working on and hope someone can help.

I keep getting null is null error on every web page triggered from the navbar.

Also advanced search and review javascript does not work when links are triggered. I am hoping I can provide code for someone to take a look at. Please advise who may be intersted in taking a look at the code to fix.

Thx bundle.
nkdinamo
Forum Newbie
Posts: 3
Joined: Fri Aug 14, 2009 4:57 pm

Code Fix Please

Post by nkdinamo »

Webpage error details:

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; MSN Optimized;US)
Timestamp: Fri, 14 Aug 2009 22:10:41 UTC


Message: 'null' is null or not an object
Line: 76
Char: 5
Code: 0
URI: http://www.bizcus.com/ebizcus/listing/


Message: 'null' is null or not an object
Line: 103
Char: 6
Code: 0
URI: http://www.bizcus.com/ebizcus/listing/


Message: Object expected
Line: 128
Char: 1
Code: 0
URI: http://www.bizcus.com/ebizcus/listing/
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Fix Code

Post by Weirdan »

It has nothing to do with php.
:arrow: Moved to Javascript forum.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Fix Code

Post by kaszu »

Problem is with $(document) which returns null

Code: Select all

$(document).ready(function() {
because $ function is:

Code: Select all

function $(id) { return document.getElementById(id); }
You don't have jQuery loaded on that website, but you are trying to use $ as it would be jQuery
nkdinamo
Forum Newbie
Posts: 3
Joined: Fri Aug 14, 2009 4:57 pm

Re: Fix Code

Post by nkdinamo »

Thanks for your help.

How do I load JQuery so that I can fix the error.

Thanks for your help.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Fix Code

Post by kaszu »

I see you already got it fixed :)
Post Reply