homepage Welcome to WebmasterWorld Guest from 54.197.19.35
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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




msg:1487234
 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




msg:1487235
 2:19 pm on Jan 4, 2005 (gmt 0)

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

choster




msg:1487236
 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




msg:1487237
 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