Forum Moderators: coopster

Message Too Old, No Replies

Need to pass variable to another window

Not sure how to do this

         

RussellC

3:51 pm on Jan 25, 2006 (gmt 0)

10+ Year Member



I have a dropdown on my intranet that list all of our referral partners so when I enter a client I can select who referred them to us. Well, things have been going well and this dropdown now has 200 entries to select from. It is getting tedious to go through all of these, so I was thinking of a way to search them by poping up another window for the search and when the partner is selected it will go in a text field or something similar. However, I have no idea how to pass the variable in the popup window to the regular browser window. Anyone have any ideas on how to do this?

Thanks.

Dijkgraaf

2:47 am on Jan 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do a search for "modal dialog".

tc3driver

7:09 am on Jan 26, 2006 (gmt 0)

10+ Year Member



You can use (assuming that the popup is still a browser window) the $_GET feature.

the selected companies link would be [your.intranet...] company remove the curly brackets}

then in the form page have an auto fill set for $company and make sure that you have this somewhere near the top of the php file $company=$_GET['company']

just another idea.

RussellC

3:38 pm on Jan 26, 2006 (gmt 0)

10+ Year Member



Thanks for the suggestions. I figured out how to make it work, but I should have asked in the Javascript forum :) Thanks again.