View Full Version : java script quits working....but not on host!
waring_abbott
August 15th, 2006, 10:09 PM
Hope I'm in the right place, this is my first time...be gentle with me. I have a nice website template (artonyourwall.com) written with Dreamweaver. I am not a programmer but have been able to make some modest changes using Dreamweaver, that is until this morning. Went to add a page and everything was fine until I tried to add the page title/address under one of the sub menus. Simply could not get it to work, then when I tried to put everything back where it belonged NONE of the sub menues worked (these menus are in a file called menu.js, so I assume this means some sort of Java script deal is corrupted. Here is the weird part: I thought I could get it all back to where it started from by copying down either the menu.js file or the entire site back down from the host machine at 1and1 (the site itself runs just fine, check it out...), but no go. Every time I copied over the files got the same result. Moved it all to a different PC and still got the same result. What is going on here? The error is created using both Firefox and IE6 -- the bad sign in Firefox is not seeing the page address at the prompt (C:\xxxx\gallery1.html) but a gobbledegook of letters and numbers -- ex "TMP5Rj453.htm". Does this mean some sort of temp file is being generated instead of the proper page (gallery1.htm)? Very weird...
thanks in advance for any suggestions,
Waring Abbott
ps did not make clear that the problem is that now NONE of the sub-menus will work, not just the area where I was trying to add one. When you click on any of them you get the weird "TMPxxx" file listed in the browser prompt instead of a page address....
degsy
August 16th, 2006, 10:14 AM
Welcome :)
Have you tried opening the page via Windows Explorer?
When you preview in the browser via Dreamweaver it will create a temp file. You can change this in the preferences.
waring_abbott
August 16th, 2006, 01:50 PM
I assume you mean IE -- tried to run the file directly from it just now, got message "The page cannot be displayed...currently unavailable etc etc." Is there another way to open/view this page other than IE, Firefox, or Dreamweaver? In any event, if it won't run in web browsers, that seems to be the essence of the problem. Yes, I also unlicked the "temp file" option in Dreamweaver and that had no effect at all. Can't understand why this will run from the host server on the web but won't run on any of my PCs (have tried four different machines). Why would a file(s) that works fine "up" suddenly be no good down here? All of these PCs are different and running different iterations of Win XP. They can't all be corrupted or messed up.....this is a crazy problem!
best,
Waring
should add to above -- was able to open the index.htm file and then you get that error message when you click on a sub menu and try to navigate through the site. Something that certainly does not happen up on the web -- take a look at it, ArtOnYourWall.Com. Working fine up there, no go down here....And I have spent a lot of time previously editing and changing things with this site, all in Dreamweaver, and never before had this very weird problem crop up. Every other time I could test run the site from within Dreamweaver using both Firefox and IE6 with no problems.
degsy
August 16th, 2006, 02:09 PM
From the looks of it it seems that your javascript menu is setup for a certain directory structure.
You have set it to use / which makes it into a relative URL from the root folder.
So online it looks for http://artonyourwall.com/index.html but locally it looks for file:///C:/index.html
It will work online, but not locally.
waring_abbott
August 16th, 2006, 03:43 PM
Degs, thanks for the quick reply. The big problem for me is I did not make any relative/absolute directory structure changes. I did not do anything except try to add one line of code to the bottom of one of the subdiretory menus, and when that did not work, changed it back to the way it was. And when that still did not work, downloaded the entire site off of the 1and1 server and tried to run that. Logically can't figure this out: the whole thing works up on their server but not on my PC. What would the difference be? Particularly when it has always worked on my PC before....many times!
Driving me nuts....
Waring
degsy
August 16th, 2006, 06:38 PM
Try clearing out your temp files