Not able to doc.write("<script

Hi, I am newb on javascript.

I have notes form, which having JS Header to generate a report. Sample code like

doc_table.writeln(“”);

doc_table.writeln(“”);

if (style_sheet != “”)

doc_table.writeln(“<link rel=stylesheet type=text/css href="/” + dbname + style_sheet + “">”);

doc_table.writeln(“”);

doc_table.writeln(“”);

doc_table.writeln(“

”);

and etc…

Everything works well, report with table generated, except when I want to add the following line:

doc_table.writeln(“<script type="text/javascript" src="/” + dbname + “/sorttable.js?OpenJavascriptLibrary" ></script>”);

Other browser works well too, but IE will not generate the report, it will stuck as soon as it found the word “</script>”.

But, if I add alert(“test”); right after the above line, IE will prompt with the dialog box and when user click “OK”, the report will be generated beautifully. :o(

Can anyone help me with this ? I have been stuck for few days with this… Thanks for any light shared.

Subject: Not able to doc.write("<script …

Dunno if it helps but i think it should be “” not “</script>”.

Subject: RE: Not able to doc.write("<script …

Thanks for response. I try first, but having the IE problem, that is why at last change to </script> but still the same…

May be when IE render till , it will take it as command ? How to ask IE write the script without action ?

Thanks.