View Full Version : Accordion Content Script renders perfectly LOCAL, but NOTHING when "on the web"

04-09-2012, 08:53 PM
1) Script Title: Accordion Content Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm

3) Describe problem: Renders and works perfectly when viewed locally on the computer, when uploaded to my host it does not work at all.

Hi all,

Thanks in advance for any help. Haven't designed a website since 2002... so I'm a little behind the times. Doing the best I can learning CSS and JS.

Anywho, the Accordion Content Script is EXACTLY what I'm looking for, however I can not get it to work when uploaded to my go-daddy hosting plan. I have the bottom of the line economy hosting plan (linux).

The source viewed on the site (linked below) is EXACTLY the same as what is on my PC. I've confirmed by uploading multiple times and ensuring the content in the files uploaded to the server are exactly the same as what's on my PC. I've tested this with FireFox 11, and the latest Chrome. It does the exact same thing, so I'm thinking it is somehow related to go-daddy.Chrome and FF render the page just fine locally, however when viewed off the go-daddy hosting, nothing.

I have not bothered to change ANY of the code yet, as I didn't want to start editing things if it's not working off the bat. Only thing changed is I've moved the CSS from the HTML source to the existing style.css. I have tried it both ways, so it doesn't seem relevant.

Here is the URL to the page in question:


CSS is here: http://www.imajonesin.com/style.css

JS is here: http://www.imajonesin.com/ddaccordion.js

Here is a screenshot viewed on my PC locally:


And here it is viewed on the go-daddy hosting.


04-09-2012, 10:53 PM
Although I don't think this issue is completely caused by go-daddy economy linux not supporting Ajax (only the 2nd example of the script is Ajax correct?) I had go-daddy switch me over to the windows hosting to see if that fixes it.

It's going to take 24-72 hours for the switch over to happen, so in the mean time, assuming this does not fix it, what else is there to look for?

It just baffles me that the page would render correctly locally, but not on the server. It's usually the exact opposite isn't it?

04-10-2012, 08:52 PM
Hmm the URL you posted (http://www.imajonesin.com/breakfast.html) doesn't work for me at the moment (I assume due to the server transfer). In any event though, the platform of your web server doesn't matter in this case, as JavaScript is purely client side. If you still need help please let me know when the URL works again, and I can check it out.