lse123 — 2014-03-04T10:10:42-05:00 — #1
What if I want from an html web form in index.html submit a web form, to be used (its data) in quote.html. In quote.html using this data to load a rent car quote - ALL CARS- via ajax.... how data in a form pass to ajax in another web page both html pages...NOT PHP Pages....
localstorage is the answer or exist other way? html pages, not php pages
1119 — 2014-03-05T08:31:51-05:00 — #2
Via the URL, when you POST a form, use the GET method, then the receiving page can access the values of the URL.
You wouldn't use AJAX to do this because you are loading another page, AJAX is best left for sending and fetching data from a server-side script and POSTing data.
lse123 — 2014-03-05T11:28:44-05:00 — #3
all html pages in your case? how get in html page get or post vars?
in case use local storage for this vars or stringified objs are available to next page immediately? after set localstorage in prior page...
1119 — 2014-03-06T09:45:22-05:00 — #4
Your receiving page will have a string of data after the ? in the URL, this is usually in the format of x=value where x is the form field name and the value is whatever is the field value, the separator is the &