User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 329,033 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,469 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1866 | Replies: 21 | Solved
Reply
Join Date: Dec 2007
Posts: 75
Reputation: hielo is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 10
hielo hielo is offline Offline
Junior Poster in Training

Re: Javascript breaks IE - please help.

  #21  
Dec 13th, 2007
Read post #18 here. That is the solution to these problems.

>>so it seems we need to revisit the following:
setInterval("alterText();", 110);

The problem is NOT how often you call alterText(). The problem is that at some point, alterText executes:
document.getElementById("n"+letter).style.visibility="visible";

where
document.getElementById("n"+letter) is evaluated first. For a value of letter whereby there is a non-existent id, null is returned. So basically at the end, you are trying to set the style property on a null object. Hence the error.


Again, post #18 on this thread addresses this issue.
Last edited by hielo : Dec 13th, 2007 at 2:43 pm. Reason: Typo
Reply With Quote  
Join Date: Jul 2006
Posts: 126
Reputation: tefflox is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
tefflox's Avatar
tefflox tefflox is offline Offline
Junior Poster

Solution Denouement

  #22  
Dec 14th, 2007
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Marketplace (Sponsored Links)
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 5:27 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC