JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2058
Number of posts: 5158

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
"Nesting" Javascripts? Posted by Thummy on 10 Jun 2002 at 2:03 PM
This message was edited by the Thummy at 2002-6-11 5:13:22

This message was edited by the Thummy at 2002-6-10 14:8:32

I thought I had a good "Trick".

In my HTML I just include one scriptfile (<script src='http://....'></script>)

And in this file I refer more files by doing things like:
if(some_cookie_setting){
document.write("<script src='http://....'></script>");
}else{
document.write("<script src='http://....'></script>");
}
My IE browser under win98 thinks its ok (and I think its valid too).
But other browsers (and IE on a Mac) don't "get it"?

What to do?
Does someone else knows a way to archive the same effect?





Thread Tree
Thummy "Nesting" Javascripts? on 10 Jun 2002 at 2:03 PM
pixelmech "Nesting" Javascripts? >> no answer yet! on 10 Jun 2002 at 2:51 PM
Thummy "Nesting" Javascripts? >> no answer yet! on 11 Jun 2002 at 12:40 PM
compuchip Re: "Nesting" Javascripts? >> no answer yet! on 19 Jun 2002 at 3:20 AM
Thummy Re: "Nesting" Javascripts? >> no answer yet! on 19 Jun 2002 at 5:22 AM
compuchip Re: "Nesting" Javascripts? >> no answer yet! on 19 Jun 2002 at 7:53 AM
Thummy Re: "Nesting" Javascripts? >> no answer yet! on 19 Jun 2002 at 8:09 AM
compuchip Re: "Nesting" Javascripts? >> answer! on 19 Jun 2002 at 10:23 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.