homepage Welcome to WebmasterWorld Guest from 54.166.111.111
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
document.write("<SCRIPT src='ext.js'><\/SCRIPT>") für Netscape
Netscape kills line
Andy16




msg:1480565
 9:09 am on Sep 27, 2002 (gmt 0)

Hi,

I want to write the content of a frame via a script.
Also an external JavaScript should be reverenced.
(in IE it works - in Netscape it doesn't!)

Doing a
document.write("<SCRIPT src='ext.js' type='application/x-javascript'><\/SCRIPT>")

just does not appear!

even a
k.write("<SCR"+"IPT src='ext.js' type='application/x-javascript'><"+"\/SC"+"RIPT>")

is not shown!

Doing a
k.write("<SCRIP_ src='ext.js' type='application/x-javascript'><\/SCRIPT>")

the line is displayed - but of corse it does not work....

Any Idea?

regards
Andy

 

Dreamquick




msg:1480566
 10:29 am on Sep 27, 2002 (gmt 0)

I have a feeling (at least in newer browsers) the type is "text/javascript", for example i use this

<script
language="JavaScript"
type="text/javascript" src="/jscript/datehandler.js">
</script>

Also you might need to assign the language

- Tony

g1smd




msg:1480567
 9:34 pm on Sep 27, 2002 (gmt 0)


Can you reference a script inside another script like this? I mean is it meant to work, or is it just a quirk that it works in IE?

c3oc3o




msg:1480568
 12:54 am on Sep 28, 2002 (gmt 0)

Yes, it works fine in N4, N6 and Opera as well.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved