What?
I would like to be able to do a post request (does not have to be form data) to a new window without using the target attribute (XHTML validation).
Why?
I have a webapp (using jQuery) where the user selects a number of entries to print. Each entry id should be sent to a processing page that will display a printable version of the entires. I don’t want to direct the user away from the webapp to print and I cannot use get in a popup because the number of entry ids might become too large to fit in a URL.
I have googled and read several forums and most people seem to suggest either the target attribute directly or inserting it using JavaScript. I was hoping to avoid both these solutions.
Is this even possible and if so, how?
Thanks in advance 🙂
In Javascript, intercept the form submission, populate a second form with only hidden fields with the values you want, and submit that form instead.