Long time reader, first time poster.
I have a problem. I have a form in an HTML page, when the user populates the form I need to be able to (on click of a link) open a new window with the same page in it with the form populated.
Reason is that my app (built in Struts/Java) needs a print page. With the page in its current state, it is too wide to be printed. So I put some logic in which hides certain parts of the page (side nav bar, head-footer) when a parameter is on the URl.
This all works fine, I have some script which gets the current url and opens a window with the parent url in it with the additional parameter. The problem occurs when its a form, as a new request is being sent to the server, the page opens with a fresh, blank form.
Is their any way to pass the form details over the request and populate the new form (which is identical) with it? Or is their some way of associating the form in the child window with the one in the parent?
Due to business requirements its not very flwxible, I am looking for a generic way as there are alot of forms.
Anyone got any thoughts?
Cheers
Dave