Link to home
Start Free TrialLog in
Avatar of mmpd
mmpd

asked on

How to make an ajax call using jQuery Mobile

Hello and thank you for helping me.

I am developing a jQuery Mobile application that needs to make an ajax call to an OData service.  I am stumped on how to do this.  

OData.org has made a public OData service available for testing.  The uri is: http://services.odata.org/OData/OData.svc/Categories()

Using LinqPad I can successfully connect to this service and I get the following results back:
Food, Beverages and Electronics.

Will you please provide a short snippet of code using jQuery Mobile, the jQuery Mobile apis and ajax that will demonstrate how to make this call and return the results?

Thank you very much
ASKER CERTIFIED SOLUTION
Avatar of Kyle Hamilton
Kyle Hamilton
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here is the result of the above code:

http://candpgeneration.com/EE/EE-ajax.html
You could also look into $.mobile.changePage, which will enable jquery mobile transitions if you want, but you'll still probably need the php 'cause of the same domain restriction.

http://jquerymobile.com/demos/1.1.0/docs/api/methods.html
Avatar of mmpd
mmpd

ASKER

Thank you very much.