Page 1 of 1

Fix Code

Posted: Fri Aug 14, 2009 5:05 pm
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.

Code Fix Please

Posted: Fri Aug 14, 2009 5:14 pm
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/

Re: Fix Code

Posted: Fri Aug 14, 2009 5:51 pm
by Weirdan
It has nothing to do with php.
:arrow: Moved to Javascript forum.

Re: Fix Code

Posted: Sat Aug 15, 2009 12:36 pm
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

Re: Fix Code

Posted: Sat Aug 15, 2009 9:33 pm
by nkdinamo
Thanks for your help.

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

Thanks for your help.

Re: Fix Code

Posted: Sun Aug 16, 2009 5:55 am
by kaszu
I see you already got it fixed :)