Making Javascript just write the content

Making Javascript just write the content

am 18.06.2006 11:10:08 von Laphan

Hi All

I'm using ASP to squirt some text into JS so that the JS write it into an
iFrame, but JS keeps giving me unterminated string errors when the text is
more than 1 line's worth. I thought JS was free-form!!

My code is simply:

iView.document.write('

size=4>ffff


777

');
iView.document.close();

All of the content between the '..'' in the .write is what comes from my DB
via ASP.

If the content came out as:

iView.document.write('

size=4>ffff

');
iView.document.close();

then it works. AAARRRRGGGHHHH!!

Could somebody please advise me on how get JS to work with a (possibly)
large chunk of data with the above.

Thanks

Laphan