Web Design Forum: Weird problem with javascript? - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Weird problem with javascript?

#1 User is offline   Samus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 05-August 11
  • Reputation: 27
  • Gender:Male
  • Location:Hackney, London, UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 16 January 2012 - 03:59 PM

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?
0

#2 User is offline   Olavi 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 11-January 12
  • Reputation: 2
  • Gender:Male
  • Location:Norway
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 16 January 2012 - 04:35 PM

Firebug dont show anything?
View local js source through a browser. Maybe this helps.
0

#3 User is offline   Samus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 05-August 11
  • Reputation: 27
  • Gender:Male
  • Location:Hackney, London, UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

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..
0

#4 User is online   Skateside 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 465
  • Joined: 09-November 08
  • Reputation: 44
  • Location:Bedford
  • Experience:Advanced
  • Area of Expertise:Coder

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?
0

#5 User is offline   Samus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 05-August 11
  • Reputation: 27
  • Gender:Male
  • Location:Hackney, London, UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 17 January 2012 - 08:18 PM

View PostSkateside, 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?

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?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users