Raraken
03-15-2005, 04:47 AM
I'm writing a website component (java based) for websites, but In internet explorer, when I use Javascript to write another <script> tag, it doesnt show up in internet explorer.
step 1: someone puts <script ... ... src="http://www.mySite.com/component.php">
step 2: (component.php's output)
document.writeln('<script ... ... src="http://www.mySite.com/runComp.php?website='+document.URL+'&blah=blah">');
step 3: (runComp.php's output)
document.writeln('<table><tr> ... ... blah blah blah ... ... </tr></table>';
I do this because alot of features requre the pages URL and such, but only javaScript has the scope to give the documents true URL. I can make the JAVA write an IFRAME, but that would be nightmarish with complications.
EDIT: this page is perfect for what I mean: http://www.webmasterworld.com/forum91/342.htm
step 1: someone puts <script ... ... src="http://www.mySite.com/component.php">
step 2: (component.php's output)
document.writeln('<script ... ... src="http://www.mySite.com/runComp.php?website='+document.URL+'&blah=blah">');
step 3: (runComp.php's output)
document.writeln('<table><tr> ... ... blah blah blah ... ... </tr></table>';
I do this because alot of features requre the pages URL and such, but only javaScript has the scope to give the documents true URL. I can make the JAVA write an IFRAME, but that would be nightmarish with complications.
EDIT: this page is perfect for what I mean: http://www.webmasterworld.com/forum91/342.htm