View Full Version : Help with pop-up on form submit

11-23-2009, 09:51 PM
Script: DHTML Window widget

I am trying to use the DHTML Window widget to replace my current script that pops a new browser window.
I think I need to use the iframe example, but can not seem to get the code correct. Below is what I used to use, how can I write it for DHTML Window widget

My OLD Script (that I want to stop using and start using the widget)

function pop_POFPDF(myForm) { var w = indow.open('about:blank','pop_Window','location=yes,directories=yes,menubar=yes,status=yes,toolbar=yes,titlebar=yes,scrollbars,resizable,width=800,height=600,le ft=1,top=1');myForm.target = 'pop_Window';return true;}

My OLD form link (that I want to stop using and start using the widget)

<FORM ACTION="http://mysite.com/mypage.php" METHOD="GET" onSubmit="pop_POFPDF(this)">Order No:<input name="ord_no" type="text" ></FORM>

11-28-2009, 12:17 AM
Can anyone help?
Point me to an FAQ I overlooked?
Maybe what I am trying to do can't be done with DHTML Window Widget?

11-28-2009, 06:30 PM
You should be able to do this with the DHTML widget. Can you post the script that you are using that doesn't work?

12-04-2009, 04:06 PM
That's just it.

I have no clue where to look for help on writing a dhtml widget script that is similar to the one above that calls my web page in a pop-up.

When my user clicks "submit" I want a widget window to pop up instead of the browser window pop-up that I have now.

The code I have above to pop a browser page works perfect, but I want to use the dhtml widget.

I have searched the FAQ's and the forum with no luck.

All the samples I have found pop-up outside pages like google.