Page 1 of 1

AJAX not running on localhost but works online?

PostPosted: 21. September 2011 17:57
by Dangzing
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

Re: AJAX not running on localhost but works online?

PostPosted: 21. September 2011 20:42
by JonB
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

Re: AJAX not running on localhost but works online?

PostPosted: 21. September 2011 20:49
by Dangzing
source can not be resolved?
what do you mean?

Re: AJAX not running on localhost but works online?

PostPosted: 21. September 2011 22:45
by JonB
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)

Re: AJAX not running on localhost but works online?

PostPosted: 21. September 2011 22:48
by Altrea
Use Firebug with FirePHP for debugging.