Display Form Result In Same Page With Only Client-side Script Possible?
I have a bit of a tricky work problem I hope to get some help with. To handle various forms and storing entries, we use an in-house tool which I cannot modify. Basically what happ
Solution 1:
Don't use a form. Instead use AJAX. I think this SO Question will provide a start. Basically you use JavaScript to submit data to a server using XMLHttpRequest. The returned HTML is a string which you could either modify or (better yet) normalize and add to the DOM.
For an advanced example jQuery-Mobile does this concept when you click a link instead it gets the HTML from the server as an AJAX request copies the HTML inside the <body>
and inserts it into the DOM.
Search for tutorials about AJAX and jQuery (or your prefered JS library). Like this one.
Post a Comment for "Display Form Result In Same Page With Only Client-side Script Possible?"