Solved

problems with ajax on android

Posted on 2013-10-30
1
355 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
1 Comment
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to count occurrences of each item in an array.

910 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now