Welcome to WebmasterWorld Guest from 107.21.16.70

Forum Moderators: open

Message Too Old, No Replies

<script> in another <script>

     
7:49 am on Jan 4, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 3, 2004
posts:598
votes: 0


Can anybody describe me. Can i attach a <script> file in a <script></script>. I have a towns select and hotel select. But if i attach a whole hotel file. It would be very much information. And i like to dinamycally attach a different files with hotel array to form a hotel select dinamycally.
Is it possible?
2:19 pm on Jan 4, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:July 20, 2001
posts:137
votes: 0


document.write("<"+"script type='text/javascript' src='sample.js'><"+"/script>");
5:16 pm on Jan 4, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
posts:1262
votes: 0


Or if you need to contend with Mac IE 4.5,

document.write("<"+"scr"+"ipt type='text/javascript' src='sample.js'><"+"/scr"+"ipt>");

(any occurrence of </script> closes the script in that horrid browser, unfortunately).

10:51 pm on Jan 4, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:July 20, 2001
posts:137
votes: 0


Good Mac tip. Thanks choster :)
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members