js help
- Started
- Last post
- 12 Responses
- dMullins
Acescene was helping me with my site, but I think he's too bogged down with other stuff right now.
He's gone ahead and provided this update most recently -- http://culturekiller.com/dm3.htm… -- which seems to work as intended for the first link ("About Testing").
When I copied the files over to my server to update the functionality for all of the other links, it doesn't work anymore. http://www.dylanmullins.com/
Any thoughts from the hardcore programmers around here?
Thanks in advance.
- welded0
Make sure the load the core jQuery *before* all plugins. (ie. swap lines 13 and 14.) If nothing else has changed, that'll most likely be the culprit.
- dMullins0
I made that switch, but that did not seem to be the resolution. Thanks though, good to know at least.
- welded0
I'm not sure if it's related, but the script src on line 18 should be 'http://www.dylanmullins.com/src... but it looks like the problem is related to the slideViewer plugin.
- dMullins0
Hmm. Not sure how it can work from one site, and not on the other when I just copied the source code he tweaked.
- welded0
Oh, I see the problem. You don't have an about.html on your server so the javascript has nothing to load. Here's the one on the previous server: http://culturekiller.com/about.h…
- dMullins0
Sorry, you're looking at it while I'm messing about trying to figure the issue out.
The page is there, I was just moving things to check if it was an issue with absolute paths.
- welded0
I change the about link on a copy of your site I made and it worked just fine. I'm sure that's the issue.
- dMullins0
Hmm, try now. I just fixed the links so you can see. Doesn't seem like it works when the linked pages are from my domain. Blowin my mind here.
- welded0
Line 34, change it from $("#stage").load(theurl, {foo: 'bar'}, function(){
to: $("#stage").load(theurl, function(){Worked for me.
- dMullins0
Thank you so much. That fixed it for me as well. I owe you a cookie.
- welded0
Awesome! I'll take a peanut butter cookie, thanks. ;)