•
•
•
•
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
![]() |
•
•
Join Date: Dec 2007
Posts: 75
Reputation:
Rep Power: 1
Solved Threads: 10
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.
>>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
Hielo, thanks verily!
At farther interest, please visit any of the following ---
http://digg.com/programming/The_Listenlight_Text_Engine
http://listenlight.net/listenlight-textengine-0_1.txt
http://listenlight.net/13/
At farther interest, please visit any of the following ---
http://digg.com/programming/The_Listenlight_Text_Engine
http://listenlight.net/listenlight-textengine-0_1.txt
http://listenlight.net/13/
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
•
•
•
•
ajax asp cross-browser javascript menu with few lines of code developer development firefox home html internet javascript javascript smooth scrolling scroll smoothly window document position javascript tab menu with rounded corners generator microsoft msdn office prevent javascript menu from getting hidden under flash movies site software sql vista web
- Mouse Over ToolTip Help (JavaScript / DHTML / AJAX)
- PHP/AJAX/Javascript/Mysql - Master - NO FREELANCE (Los Angeles) (Software Development Job Offers)
- Move Javascript Variable to PHP (JavaScript / DHTML / AJAX)
- java to javascript (JavaScript / DHTML / AJAX)
- Generating dynamic text sizes us JS (Java)
- Fly-over menu ??? (Site Layout and Usability)
- expected error on homepage (HTML and CSS)
- Design for A4 printing HTML report - Pg Break? (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Action by pressing a key
- Next Thread: Ajax selecting from MySQL


Linear Mode