I am currently creating a application and would like to add a AJAX feature, but i cant seem to find any examples of what i want!
Im tryin to keep everything on one page.
So for example, i already have a automatically generated list of products down the left of my page, which are displayed via JQUERY–>servlet.
now if a user clicks on a product it directs them to a html page with a form that submits to the servlet (i haven’t coded this, but i know how too).
But what i want is, when a user click the product, the form is loaded into a designated div on the page, in which a user can fill it in and submit to the servlet without leaving the page.
Would i be better of coding a JSP page and thenpulling that into the main JSP page? or creating a form in jquery?
Could anyone point me in the right direction?
Have a look at the jQuery-ui dialog, the validation plugin and the form plugin. These should be all you need to produce great dialog based ajax forms with validation.
If you need to upload files, I have found that the uploadify plugin is great for submitting files with form data.