PDA

View Full Version : help me with dhtml modal window please??



webadnan
02-12-2009, 01:24 PM
1) Script Title: dhtml modal window

2) Script URL (on DD): www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm

3) Describe problem:
i like the window script. i have a reservation form . i want to submit the form and see the result into dhtml window. how can i manage it?

i tried sth like this but it failed :((


<script type="text/javascript">
function openmypage(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "rezervasyon1.asp", "Website Demo", "width=980px,height=600px,left=20px,top=20px,resize=1,scrolling=1")
ajaxwin.onclose=function(){return window.confirm("Close?")} //Run custom code when window is about to be closed
}
</script> <form id="ContactFORM" onsubmit="openmypage(); return false" method="get" name="ContactFORM" action="rezervasyon1.asp" >

moscarda
02-12-2009, 06:29 PM
i'd use php, you can embed javascript in php... create a seperate php document which will take/check the user inputted data, and then use a javascript to create a popup, or dhtml window with the variables defined earlier in the php.

if you are not sure how to do this, i could help.