|
Long Island Lune -> RE: Confirmation fields on a results page? (10/4/2003 23:47:02)
|
Backup the results page first in case you ever change your mind, or there are problems, or until the system is in and working correctly. -------------------------------------------------------------------------------------------- Cut and copy the following Java code snipit, then paste it at the TOP of the page that you want to launch your pop-up from (result page). Make sure this is pasted before the <html> tag on your page. The Java Script code: <script TYPE="text/javascript"> <!-- function popupform(myform, windowname) { if (! window.focus)return true; window.open('MYpopupPAGE.asp', windowname, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no, width=420,height=628'); myform.target=windowname; return true; } //--> </script> Notes: 1): Replace the MYPopupPAGE.asp page address (above) with the page you want to appear in the pop-up window. Your making a new page right? Create the page so you have the address, then insert the address of that page in place of MYPopUpPAGE.asp. 2): If you want to alter the size of the window that pops up, change the HEIGHT and WIDTH properties to reflect the size you want your window to be. 3): If you want scrollbars to appear in the pop-up, change the SCROLLBARS=NO to YES. The same goes for RESIZABLE, etc… The Button: The button code below can be pasted inside your html page. Make sure you change the “MypopupPAGE.asp” with the page you want to appear in the pop-up window. It should be the SAME as the name of the new page you just created (above). <form method="POST" action="'MYpopupPAGE.asp'" name="In1" onSubmit="popupform(this, 'join')"> <input type="submit" value="Search Again" name="B1"> </form> Place the code (above) near the bottom of your page where you have the "Search Again" form. You can save the page and test it now. Once it works nice, you can remove the old (non-working) form. On your new page: This will be the page that will appear in the pop-up window. Do a new form. I suggest not to cut, copy and paste the old form. There is something wrong with it. This is the only area where you will have to create from scratch again. Do it like you did with all your other forms that work correctly. This is about all there is too it. If you decide to later put a graphic in (from your daughter), let me know and I'll give you the code to link a graphic instead. I will be online for another 30 minutes, then machine goes off. Post if you can, if not, I'll check tomorrow afternoon to see how things went. [:)] [;)]
|
|
|
|