Click to See Complete Forum and Search --> : I need a javascript WIZARD!


_LOBO_
05-13-2003, 08:41 AM
Hi and THNX for any help.

This is the original script:

http://javascriptkit.com/script/script2/dcombotext.shtml

This script launch a window when you make your choise, can we change the script to launch a pop - up ( something nice with out buttons or nav. bar ) ?

:confused:

can u put code example plz TNX

Bootsman123
05-13-2003, 09:47 AM
This is the code which makes sure it is opened in a new window.

if (open_in_newwindow==1)
window.open(url_array[window.document.form_1.select_1.selectedIndex][window.document.form_1.select_2.selectedIndex],"_blank");
else
window.location=url_array[window.document.form_1.select_1.selectedIndex][window.document.form_1.select_2.selectedIndex]


And this is a code to open a pop-up without nav bars or anything.


window.open("url_array[window.document.form_1.select_1.selectedIndex]","","height=500,width=700,left=0,top=0,resizable=no,toolbar=no,scrollbars=auto");


I think that should work.

_LOBO_
05-13-2003, 10:26 AM
TNX Bootsman123

I try to use your script but dosent work. ( The web browser show me a error in the script ) :(

pyro
05-13-2003, 10:32 AM
Try this...

window.open(url_array[window.document.form_1.select_1.selectedIndex][window.document.form_1.select_2.selectedIndex],"_blank","height=500,width=700");

_LOBO_
05-13-2003, 10:36 AM
PYRO You DID IT AGAIN ^^

it works fine now, TNX for the help. :D

pyro
05-13-2003, 10:40 AM
You bet!

Cheers, man...

_LOBO_
05-13-2003, 10:52 AM
Pyro if is not to much ask, we can center the pop up ? :D

TNX again, for the help.

pyro
05-13-2003, 10:55 AM
Sure thing... take a look at http://www.infinitypages.com/research/centeredpopup.htm If you need help after that, let us know...

_LOBO_
05-13-2003, 10:59 AM
TNX I Hope I can help u one of this days.

This is a greate Forum.