Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two Questions

Status
Not open for further replies.

jaschulz

Programmer
May 20, 2005
89
FR
1. How do I include a line feed in a string passed to document.createTextNode()? I have tried \n and <br />, but the former is simply swallowed with no effect, and the latter shows literally in the parent div.

2. I have borrowed and implemented a preload image routine that works fine online, but will not give an error message (when it should) if I run it locally. There is an example at:


The example does give the error message (as it should) because one of the images to be loaded, rembrandt.jpg, does not exist in the folder with the others. However, if I load this page locally, it hangs without showing the error. Is there a change I can make that will fix this problem?

Thanks,

JAS

P.S. (I am running Win XP Pro, and FF2).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top