PDA

View Full Version : Open new window on form submit



mcleek21
11 Nov 2011, 11:51 AM
I have been trying to figure out how to have my form submit open in a new window. Currently it is opening in the current window and I can't figure out why. I have tried a few options:

1) <form action="www.site.com" target="_blank">

2) handler: function(){
window.open("www.site.com", "_blank"); }

3) <input type="submit" class="Button" value="Submit" onclick="window.open("www.site.com")">

I thought for sure option 1 would be the answer and it works fine in a web browser but when I run it on my app on my iPad all the above options fail to open in a new window. Is there something I am missing?

Thanks in advance.

mitchellsimoens
11 Nov 2011, 5:45 PM
Not using a ST form?

mcleek21
15 Nov 2011, 1:57 PM
No, it isn't. It is a panel with the form inside the html, not ideal, but it is a form through a third party system so the html route looked the best.