homepage Welcome to WebmasterWorld Guest from 54.145.183.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
<script> in another <script>
orion_rus

10+ Year Member



 
Msg#: 2975 posted 7:49 am on Jan 4, 2005 (gmt 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?

 

MikeFoster

10+ Year Member



 
Msg#: 2975 posted 2:19 pm on Jan 4, 2005 (gmt 0)

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

choster

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 2975 posted 5:16 pm on Jan 4, 2005 (gmt 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).

MikeFoster

10+ Year Member



 
Msg#: 2975 posted 10:51 pm on Jan 4, 2005 (gmt 0)

Good Mac tip. Thanks choster :)

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