Solved

problems with ajax on android

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

Accepted Solution

by:
Chris Stanyon earned 500 total points
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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.

772 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

10 Experts available now in Live!

Get 1:1 Help Now