Submit form without changing the site
I am looking for a way to get a form to submit the entered values to the specified site without going to that site.
Can anyone give ma a hint please?
You could send the query from your form to an iframe ASP page (using the post method), which could be included, just for example, inside a div container.
The iframe page will take advantage from its url querystrings, managing the query request through some ASP code, in order to show the result.
This way, your page url will remain the same and the query results will be managed by an "invisible" external page, inside the iframe.
The issue is, that the form is part of an jquery mobile app and I want to stay in that app.
This page should give you enough information about how to make a Cross Domain Post
If your post falls off the page, bump it. ...
Please remember to wrap any code you have in forum tags:-
[CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]
If you can't think outside the box, you will be trapped forever with no escape...
Reading the first post, it wasn't clear you were referring to a mobile app. The need to submit a form without changing the main page url is a common request, so i thought you were talking about that.
Just to clear my solution, for someone else who could wonder - by submitting a form through traditional asp code, the main page has to reload in order to elaborate the form request. So, having the form inside an iframe, it can perform the form action, while the main page url remains unaffected.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)