PDA

View Full Version : javascript - iis weirdness


grandpafred
June 20th, 2007, 21:30
This is very strange to me... I will attempt to give all information, relevant or not to the problem.
Have a laptop with xp pro sp2. It came with one hd partitioned into c and d drives with c being ntfs and d being fat32. I decided to use the d drive for my web development stuff and created a couple of virtual web sites there. Was not having any problems, sites worked just fine using localhost/virtualname etc.
where virtualname is really d:\websitename
I was even running ASP scripts...connecting to DB etc so I figured all was fine. Today I copied a site from my desktop pc to the laptop so I would have it to work on while on vacation... the site has the "Lightbox" javascript thingy in it. Works fine on the desktop machine.

Does not work on the laptop. BUT, if I open the page via Windows Explorer so the uri is file:///d:/websitename/folder/page.html the javascript works as expected.... just doesn't work if the uri is http://localhost/websitename/page.html

IF I take the folder and copy it to c:\inetpub\wwwroot\ then it works via localhost

Why would ASP scripts work in this setup but not javascript?
Any ideas greatly appreciated...


edit - more weirdness... if I take the code from this page
http://www.dcn.davis.ca.us/go/EXPLORIT/java/JavaScript.html
and create a test page as d:\websitename\testjs.htm
it works perfectly when the uri is localhost/websitename/testjs.htm

grandpafred
June 21st, 2007, 00:44
Finally got it working.... have no idea why or how. I did move the folder up to the c: drive which shouldn't have made a difference.