Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Javascript Question
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 09 May 2001 :  20:29:58  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I am trying to call a javascript function to popup a window, BUT it inserts something they inserted into a field into the querystring..

EXAMPLE:
on Snitz site, if they forget the password and type their username in and then click forgot password it would send them to...

pop_pword.asp?username=BLAH

so I know that it would have to use like document.form1.Name.Value well i think it would use this, but how could you make javascript take that and popup a window with it in the querystirng?

Brad

paco
Junior Member

Spain
187 Posts

Posted - 10 May 2001 :  05:18:42  Show Profile
One option would be to pass it to a function:

say after you click a button you want the popup:

onclick="createPopUp('user_value')

just substitute user_value with whatever you want javascript/ASP or whatever.

function createPopUp (substring)
{

win = window.open ("'" + yourpage + "?" + substring + "'",'just_a_name','menubar=No,...
...

Just to get you the idea, regards,

Paco

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.75 seconds. Powered By: Snitz Forums 2000 Version 3.4.07