java - How to do multiple page form submission with ajax request -
the application ship items on 1st page customer fills information. on 2nd page gets different rate options choose from. on 3rd page needs fill address info. on 4th page payment info & on.
now let's customer enter details on 1st page. send ajax request server & different rates options. once come in ajax success, need change page 2nd jsp. once customer chooses rate options again make ajax request & 3rd jsp & on.
i need implement ui side of code without reloading or redirecting page. 2nd & 3rd jsps should have button go previous page.
is possible jquery setting/replacing divs or there plugin use twitter bootstrap carousel?
i need in ajax success function can go next or prev jsps submit & buttons? using spring mvc framework.
i think bit confused makes what: mixing jsp , ajax, server side computation , client side.
don't care jsp or spring. have nothing need: going implement single page application, jsp , spring in charge of deliver datas client, example, in form of json (to bind template, see jsview) or html (to append dom element).
customer enter details on 1st page, on submit, ajax call happens. response of call be, said above, json or html bind document, can show new data , hide old one, bootstrap carousel ok... , on other pages.
for button, if use html5 browser should manipulate browser history (https://developer.mozilla.org/en-us/docs/web/guide/api/dom/manipulating_the_browser_history), if not should use polyfill history.js (https://github.com/browserstate/history.js/)
this response clue of way need. angluarjs or ember.js keyword can use search solutions problem.
Comments
Post a Comment