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
Responsive WebjQueryAJAX

Avatar of undefined
Last Comment
mmpd

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Kyle Hamilton

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Kyle Hamilton

Here is the result of the above code:

http://candpgeneration.com/EE/EE-ajax.html
Kyle Hamilton

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
mmpd

ASKER
Thank you very much.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck