First things first, and I hate when I have to say this but please use one of the code tags when pasting source code on the forums.

Now, could you please elaborate on what issues you are having with mobile? Which mobile devices have you tested and which of those do not work? I have just successfully run this code on mobile safari (iPhone) with no issues. So this brings me to ask if it is only certain mobile devices (or browsers) with the issue and if so, which ones?

Not every mobile device supports AJAX for starters. Most (if not all) smartphones should support it (with at least one of the available browser apps) but on more basic mobile devices I'd imagine you won't really have much success. I'm not a big jQuery user but as far as AJAX goes, there is not any special way to get it to work on browsers/devices that do not support it initially. At best you would need to implement an iframe trick to give the appearance of AJAX, loading additional data via a hidden frame and then grabbing and displaying that data via javascript. Things like that have been done to get around cross-domain AJAX issues and AJAX form submissions/uploads and should work for a scenario like this, though it's really not a great 'solution' to the problem.

01-06-2013, 01:38 AM

cnjiru

i have tried this on android mobile device using opera mini and it's not loading data .

01-06-2013, 06:19 AM

cnjiru

the ajax is returning data but it's not appending the json data on the table on the mobile browser but works well with desktop browser