AJAX not running on localhost but works online?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

AJAX not running on localhost but works online?

Postby Dangzing » 21. September 2011 17:57

Is there some sort of setting somewhere in apache that is causing this?
I can't figure out why my ajax won't fire locally.

Thank you 8)

edit:
this is actually the code i am trying to run locally...

https://github.com/okonet/modalbox
Dangzing
 
Posts: 2
Joined: 21. September 2011 17:54

Re: AJAX not running on localhost but works online?

Postby JonB » 21. September 2011 20:42

I doubt its an Apache issue - AJAX runs in the browser (although it does have to be able to DL itself from a source) so maybe when you are running in localhost the source cannot be resolved.

Good Luck
8)




ysf
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: AJAX not running on localhost but works online?

Postby Dangzing » 21. September 2011 20:49

source can not be resolved?
what do you mean?
Dangzing
 
Posts: 2
Joined: 21. September 2011 17:54

Re: AJAX not running on localhost but works online?

Postby JonB » 21. September 2011 22:45

the AJAX has to be 'loaded' from some URL - I'm supposing when you are running off 'localhost' that URL is not resolving to an address that is available.

This is out-of-scope here, I'm just suggesting a possible cause.

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: AJAX not running on localhost but works online?

Postby Altrea » 21. September 2011 22:48

Use Firebug with FirePHP for debugging.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests