jQuery ajax post data to aspx webpage
Posted on 2012-08-27
I am building an app in xCode with phonegap. Currently I am using ajax to load data from a remote source (Display.aspx) and that is working perfect. However I want to then post data to my Input.aspx page. I have the sites whitelisted so crossdomain issues should not be there.
I also tried the code on the same server to verify it is not a crossdomain issue.
Right now the form that adds data to my database is a basic page with text inputs.
Now I have a third page (which eventually will be an iOS app) that I am trying to post from. Can I not just use ajax to submit directly to the Input.aspx page, or do I have to have some kind of web service?
I think I need a clear example of how ajax can submit data to a remote website (remember crossdomain should not be an issue as it is an app).
I think I don't get how the aspx page should be built? Does it need specific code for the ajax or can it just be a generic page with a form that submits?
Any help is greatly appreciated.