User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,555 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,483 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 758 | Replies: 2
Reply
Join Date: Oct 2007
Posts: 3
Reputation: dforkin is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dforkin dforkin is offline Offline
Newbie Poster

Question javascript won't work when burnt to a cd

  #1  
Oct 17th, 2007
burnt my javascript to a cd, it won't work from my cd
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2007
Location: Brisbane, Australia
Posts: 227
Reputation: sillyboy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 13
sillyboy's Avatar
sillyboy sillyboy is online now Online
Posting Whiz in Training

Re: javascript won't work when burnt to a cd

  #2  
Oct 18th, 2007
why would you do this? If it doesn't work just copy it to the local drive.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: javascript won't work when burnt to a cd

  #3  
Oct 19th, 2007
How are you addressing it from the HTML page?

If you addressed it with website absolute addressing, the computer running the version on CD won't be able to find the file.

If you addressed it from the C: drive, the computer running the version on CD (the D: drive) won't be able to find the file.

If the HTML is in one folder and the JS is in another folder, it won't work. The method needed to address this on a website is different from the method needed to address this on a local disk on the computer browsing it.

To make it work reliably on both a website and a CD, both files must be in the SAME folder, and only the filename must appear in the script tag call.

I run JS from CDs and it works fine.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 5:31 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC