|
|
Subject:
'null" is null or not an object
Category: Computers > Internet Asked by: eloine-ga List Price: $20.00 |
Posted:
17 Jul 2003 17:03 PDT
Expires: 16 Aug 2003 17:03 PDT Question ID: 232251 |
I'm building a beta website for a college and so far many pages I have built. I have built mostly on a Mac and never experianced any error messages on all the Mac browsers I tested until IE 6 on a PC and now there is an error on every page. I don't know hardly any code to fix it and this is what it says... line:50 char:3 Error:'null" is null or not an object Code: 0 URL: http://www.klassydesigns.com/lmc/default3Wpromo-wOstyle.htm I have no idea when I look at the code where to focus my attention. Does anyone have a clue? |
|
Subject:
Re: 'null" is null or not an object
Answered By: maniac-ga on 17 Jul 2003 19:00 PDT Rated: |
Hello Eloine, That certainly looks like a nice site and is pretty fast to load on my creaking modem. To answer your question, I'll look at it in two parts. For the specific message "null" is null or not an object basically tells you that the item being referred is not initialized or null. I found that explanation on sites such as http://www.icehousedesigns.com/community/viewtopic.php?t=682 or http://forums.devshed.com/archive/1/2002/04/4/34847 or several others by searching using the phrase "null is null or not an object" with Google. Based on what I see in the code, this is a reasonable interpretation. The line (50) and character (3) points to the line g.toMove=true; near the bottom of function P7_setScroller. I loaded the source of your file into emacs (an editor I use) and enabled java mode to highlight keywords and matching braces. If your tools can't do something like this - I may be able to suggest something that is low / no cost to use instead. Using emacs, I found that the code block after if((g=MM_findObj(a))!=null && (d=MM_findObj(b))!=null){ ends on the line 49. So there is a case where g is "null" when the code reaches line 50 and causes the error. I don't know why this fails on the PC and works on the Mac - but this piece of code certainly has a bug. The fix may be as simple as moving the close brace from line 49 to 50. As another solution, note that the next function (P7_moveScroll) is coded differently and avoids this problem - adopting that style in P7_setScroller would also be a suitable fix. Let me know you need additional help through a clarification request. --Maniac |
eloine-ga
rated this answer:
and gave an additional tip of:
$20.00
awsome! I have been posting to a bunch of forums and since I'm not that much of a tech head I couldn't understand what people answered back. After reading your suggestions in an easy way of talking I found that if I just deleted that last line I no longer got the error. When I went back and read the more complicated stuff on the other forums it started to make some sense. You must be joking on how fast the site loads though! Thanks, E |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |