?
Solved

problems with ajax on android

Posted on 2013-10-30
1
Medium Priority
?
372 Views
Last Modified: 2013-11-11
I am having some problems with my site not working properly on my android.
I narrowed it down and it seems that it is not posting the jquery ajax post requests.
A. is that true, that ajax doesn't work on the android?
B. Is there a way to detect if the ajax isn't working or it is?
C. Is there a simple work around of type of ajax script that works on all cells?
0
Comment
Question by:rivkamak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 2000 total points
ID: 39613068
A. Ajax should work fine on Android - it's specific to the browser and AJAX is just a method of making a request for data using Javascript

B. Make sure your scripts are coded in such a way that they handle errors properly. When making an AJAX request in jQuery, you have the success(), fail() and done() methods to respond to various outcomes. You also need to make sure that the server-side script you're requesting data from is coded properly - again generating errors where necessary.

C. Using jQuery for AJAX request is about as easy as it gets. The jQuery library takes all the hassle out of making sure your scripts work across all browsers.

Whenever you write code (of any kind) you really need to do dome solid testing. Rather than using the code as you intended, your aim is to actually try and break it. If you can't, and it responds appropriately to various errors, then you're on the right track.

You may want to post some code here that hilights the problem and we can give you some advice on best-practice. We'd need to see the server-side code, the client-side jQuery and any HTML that the jQuery interacts with.
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question