ie compiling, firefox, chrome not
i am copying over an existing site for a customer http://www.acrisoils.co.uk/ is the original website which works fine, http://www.applmh.co.uk/ is my version of this, the relevant scripts have been copied over from what i can tell, IE displays my version correctly whilst chrome and firefox throw an error i belive the affending one is that "dtree" is not defined, can anyone point me in the right direction? thanks all
When you say you're copying the site, do you mean that you're downloading the files from the original site, and attempting to adapt them so that they'll work on their new home? I'm having a bit of trouble what's going on here, to be honest. I've had a look at the source code for each site. I see you've got quite a few scripts linked into to the web page, but I'm not sure what purpose they serve.
sorry I was tired and that wasnt very clear ! yes I have grabbed the source code from the original site and now need to adapt this for their intended new host. i thought the JS was outputting the main nav bar but i could be wrong. ok ill try and comment out all scripts and work on the CSS, thanks for your reply.
<li><a href="/engine-oils.html">Engine Oils</a></li>
<li><a href="/hydraulic-oils">Hydraulic Oils</a></li>
<li><a href="/industrial-oils">Industrial Oils</a></li>
<li><a href="/oilkem-products">Oilkem Products</a></li>
<li><a href="/contact-us">Contact Us</a></li>
have removed the scripts, the no script tags etc, can you see at all why the CSS is not working in firefox but it is in IE? thanks alot i do appreciate it
ran it through a validator and it states i have a problem on line "-1" this is driving me crazy !!
Hi again. Just been having a play around with the code - downloaded the CSS and images to my computer so that I could work with a local version of the site. Which provided a useful clue. Usually I use wget's recursive download function to easily grab whole websites (http://www.linuxjournal.com/content/...-web-site-wget tells you how to do it). With this website it wouldn't do it, so I had to manually copy and paste the stylesheet & images URLs. Which was when I noticed that the paths in the HTML document used Windows-style backslashes rather than Unix-style forward slashes.
i.e. the stylesheet links were of the form
So - I've never seen this before, but I thought I'd try replacing the backslashes with forward slashes. Which seems to have sorted it out.
<link rel="stylesheet" media="screen,handheld,projector,print" href="css\horizontal-nav-layout.css" type="text/css" />
The stylesheets section of my version of the site now looks like this: http://pastebin.com/5SUTT26F --
If you just find and replace all of the backslashes with forward slashes that should hopefully resolve your problem.
I don't have IE on my computer - doesn't run on Linux! - but the only browser that would display it correctly with the Windows-style paths was Opera.
thanks for that, so just replace all the \ with / ? i tried that in the index file and it seemed to not change anything, might be temp files thou, humm ill have another look.
Yeah, that seemed to sort it out for me. The only other thing I changed on my local copy of the files was to add a closing </html> tag - which was missing.
Oh, and I've just noticed that there's no <body> tag. But given that you've run it through a validator you'll have noticed that.
If you ensure that your HTML is more or less valid - invalid HTML tends to lead to unpredictable behaviour - and change the \'s to /'s in the paths to your CSS files and images, then try clearing your cache and reloading the page. Hope it works.
thanks all your time here, sadly i still think i got somethign wrong, replaced all index css reference to "/" end html and body tags put in, cleared my cache, still appears the same, if you get chance would you take another look? many thanks.
Sure, I'll have another look at it. This is getting strange. I really don't think I changed anything else other than what I mentioned already. I love untraceable bugs.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)