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('<P align=center><F ONT face=Arial
size=4>ffff</FONT></P>
<P align=center><F ONT face=Arial size=4>777</FONT></P>');
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('<P align=center><F ONT face=Arial
size=4>ffff</FONT></P>');
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
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('<P align=center><F ONT face=Arial
size=4>ffff</FONT></P>
<P align=center><F ONT face=Arial size=4>777</FONT></P>');
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('<P align=center><F ONT face=Arial
size=4>ffff</FONT></P>');
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
Comment