So i've encountered a weird problem with JS.
I'm developing an app that needs a bit of JS functionality. I have a local copy setup on my laptop and a remote one on my server. They're exactly the same content.
But the thing is, after uploading my local version to my server, my server javascript performed correctly, while my local version refused to perform any functionality at all.
I've even tried deleting the local version and copying it with the server version and the problem still exists.
I'm using the same browser to view the local version and the remote version, i've also double ensured all the paths are set correctly. So this problem is beyond my knowledge.
Does anyone have any ideas what may have gone wrong?
Page 1 of 1
Weird problem with javascript?
#2
Posted 16 January 2012 - 04:35 PM
Firebug dont show anything?
View local js source through a browser. Maybe this helps.
View local js source through a browser. Maybe this helps.
#3
Posted 16 January 2012 - 05:45 PM
Nope no errors in firebug.
However, I found something else strange, when I decided to view the local version in firefox it worked as should. But it doesn't work as should in chrome anymore for some reason..
However, I found something else strange, when I decided to view the local version in firefox it worked as should. But it doesn't work as should in chrome anymore for some reason..
#4
Posted 17 January 2012 - 12:12 PM
You wouldn't happen to be doing any AJAX, would you? Chrome can get it's knickers in a twist with local files and AJAX.
Do you happen to have a demo of the script so we can see what it's doing?
Do you happen to have a demo of the script so we can see what it's doing?
#5
Posted 17 January 2012 - 08:18 PM
Skateside, on 17 January 2012 - 12:12 PM, said:
You wouldn't happen to be doing any AJAX, would you? Chrome can get it's knickers in a twist with local files and AJAX.
Do you happen to have a demo of the script so we can see what it's doing?
Do you happen to have a demo of the script so we can see what it's doing?
Yeah it's got a little bit of AJAX functionality.
It works in Firefox though, but i'd really like to make it cross browser compatible too.
If you PM me I can set up a temp account for you?
Share this topic:
Page 1 of 1
Help















