Solved

problems with ajax on android

Posted on 2013-10-30
1
364 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to count occurrences of each item in an array.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

726 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