Opening New Window with ASP
I have a HTML form which calls an .ASP file. I want to be able to display the results of my FORM variables on a POP UP window using ASP script.
Is it possible,
Any help is appreciated, Thanks,
Paulo
Web Development
I have a HTML form which calls an .ASP file. I want to be able to display the results of my FORM variables on a POP UP window using ASP script.
Is it possible,
Any help is appreciated, Thanks,
Paulo
by blaine moore
I'm not sure what you mean...do you want to open the ASP file in a popup, or use the ASP to open a popup?
If I am reading you correctly, what I think you want to do is to set the target of your form as another window. You could do this either bysetting the target or by using javascript, then just process the ASP page as you would normally. If you use javascript on your original page, you can control what properties the window has such as size, whether it displays toolbars and menus, etc.Let me know if this helps, or if you need examples.
by blaine moore
You can still do it in the javascript...just have the url of hte address be something like this:
URL = "http://mysite/mypage.asp?user=" + document.myform.user.value + "&pass=" + document.myform.user.value
Then when you use javascript to open the page (I assume from the description it is going to be a small window w/o anything but a title bar) just put that URL in. This will also keep people from looking over someone's shoulder and seeing their password, as you would not have an address bar displayed?
You could also use the javascript to create a cookie, and then read the cookie with the asp page.
I'm not sure of the syntax for opening a new window in ASP, but I'm sure you could find it fairly easily. Try http://www.webmonkey.com/ or http://www.asp.net/ http://www.15seconds.com/
by prt
by prt
FILE 1 - Contains two fields: USER and PASSWORD inside an HTML form;
I want to be able to when hitting submit, make an window pop up and inside that window I want to be able to display the values of USER and PASSWORD, but through a ASP Script (for ie. Request.Form("USER")) and there is a good reason for that.
The problem is, if I open the POpUp window using JavaScript, I have to change my form button from type submit to type button and consequently when I try to read the values for USER and PASSWORD with an ASP Script they are empty.
Another alternative would be using ASP Script to open a new window but I don't if its possible.
by prt
This discussion is closed to new replies.
Sort by Trending