Genelle
11-15-2002, 08:25 PM
I have a script that when you click a button a portion of text is written to a table cell.
However when I try to write more than just text by using any HTML tag, the code gets literally printed on the page and not interpreted as HTML
Say for example I want to format that cell's text, put in a form,
or use other tags (dropping in another web page with an ssi file include <!-- file include......-->
Is there some way to comment out that literal interpretation? In perl for example I know you can tell the language to "interpolate the following" with qq(<stuff>). Does javascript have something similar?
I get the feeling that document.writeln() could be a help here however I am fairly new to Javascript and have no idea where to put it - I know it ll need to be somewhere under the 'put' function but have no idea how to incorporate it.
My script is here http://pages.sbcglobal.net/nordallc/cellfillcombo.htm
Any help would be appreciated :)
Thanks!
However when I try to write more than just text by using any HTML tag, the code gets literally printed on the page and not interpreted as HTML
Say for example I want to format that cell's text, put in a form,
or use other tags (dropping in another web page with an ssi file include <!-- file include......-->
Is there some way to comment out that literal interpretation? In perl for example I know you can tell the language to "interpolate the following" with qq(<stuff>). Does javascript have something similar?
I get the feeling that document.writeln() could be a help here however I am fairly new to Javascript and have no idea where to put it - I know it ll need to be somewhere under the 'put' function but have no idea how to incorporate it.
My script is here http://pages.sbcglobal.net/nordallc/cellfillcombo.htm
Any help would be appreciated :)
Thanks!