I've been working on this for about 2 hours now and can't seem to find a solution. I know you can just do this:
<form target="_blank"
That only works when the user submits it. The thing is, this form is submitted using javascript. It's submitted automatically. So when I do document.formname.submit(); and the form has the attrivute target="_blank" it gives me the following error:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (ns_error_failure) [nsidomhtmlformelement.submit]" nsresult: "0x80004005 (ns_error_failure)" location: "JS frame :: [lazyjhunting.com...] :: <TOP_LEVEL> :: line 95" data: no]
So doesn't anyone know how to automatically submit a form and have the results open in a new window?
Any help is greatly appreciated. Thanks a lot.