Ajax Help Please

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

Ajax Help Please

Postby beardavid » 14. June 2011 01:04

I cant seem to get any files to work made for ajax on localhost, however these same files work on my host account. Can some explan how to get ajax to run locally? Thank You
beardavid
 
Posts: 2
Joined: 13. June 2011 01:31

Re: Ajax Help Please

Postby Altrea » 14. June 2011 01:06

should i ask my crystal ball?
without any sample code or a much much more detailed error reporting, no chance!
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Ajax Help Please

Postby Sharley » 14. June 2011 04:23

beardavid wrote:I cant seem to get any files to work made for ajax on localhost, however these same files work on my host account. Can some explan how to get ajax to run locally? Thank You
AJAX (Asynchronous JavaScript and XML) is a browser (client) side development method and so not really a server (Apache) issue that many settings on the server can remedy.

Usually the error is the other way round, works on localhost but not on a hosted server.

Is your hosted server the same type as your localhost server?

What version of XAMPP have you installed?

Are you using a link to an AJAX file on the web or a file that your html/css/javascript is relying on?
If so then download the file(s) and store it/them in your site locally and edit the link to reflect this - often people use Google's file repositories or similar file sources to download files and often this can lead to problems.

Check your links in the html will work at localhost and do not rely on a hosted server as AJAX relies on HTML, CSS and JavaScript to function fully and if any of these requirements are giving errors then AJAX will also fail.
TIP.
You can copy and paste the links to files, that you want to check directly, into your browser and see if the files will download without issues.

Are you getting any error messages in your browser?

See if there are any clues in the C:\xampp\apache\logs\error.log file or the access.log file at about the date and time you last try to run your AJAX script.

Also I would take a close look at your browser's settings to allow scripting for localhost or even a firewall setting or even a ZoneAlarm setting that may be blocking your progress using localhost.

Try using different browsers and see if you get the same result as Firefox, it seems, can sometimes be the culprit of AJAX issues.

Take a look at these search results as they may contain some clues.

Good luck. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: jeanneotts and 144 guests