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)
 Retreiving form values with a pop up window
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

big9erfan
Average Member

540 Posts

Posted - 21 September 2003 :  01:53:39  Show Profile
Ok here's the deal.

I have a window where people type certain data. I want them to click a link to open up a window that will use those values to then calculate a # and display it in said pop up window.

The basic Request.Form("item_name") doesn't work b/c I haven't hit submit and such, I know that. So my question is, how can I do it?


Worst comes to worst I will break down and write the javascript that will display the value on the same page, but I just don't like that idea all that much.

Thanks again!


This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime.

dayve
Forum Moderator

USA
5820 Posts

Posted - 21 September 2003 :  04:04:46  Show Profile  Visit dayve's Homepage
okay, let's say your form looks something like this...

<form name="frmTest">
<input type="text" name="frmText1">
</form>

then in your popup you are going to be able to read that value by using this:

var someValue = window.opener.document.frmTest.frmText1.value

That's breaking it down "Barney Style". Note the opener portion... this is the key element to accomplishing what you are trying to do. Let me know if need more help.


Edited by - dayve on 21 September 2003 04:10:17
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 21 September 2003 :  11:16:35  Show Profile
Thanks a ton dayve. I didn't want to go the javascript route, but I guess there is no other way.

Thanks again!

This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime.
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 21 September 2003 :  13:56:16  Show Profile  Visit dayve's Homepage
quote:
Originally posted by big9erfan

Thanks a ton dayve. I didn't want to go the javascript route, but I guess there is no other way.

Thanks again!



well, if you really wanted you could create a button that actually submits the form values to the popup. Then the Request.Form method would work and you could then send those values back to the parent form. However, to me that is not an efficient way to do things, plus you don't want to keep hitting the server that way. Anytime you have an opportunity to do things on the client side, you should so the Application Server is not overtasked.

Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 23 September 2003 :  18:32:01  Show Profile
Thanks Dayve, I went the javascript method and it works just fine...**** opener tag ;)

This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime.
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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07