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.