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" >
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" >