Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing vars between windows

Status
Not open for further replies.

audiopro

Programmer
Joined
Apr 1, 2004
Messages
3,165
Location
GB
I have a form field, into which is entered then name of an image. All very well if you know the name of the image but I needed a better way. I set up a link next to the form field which opens another window via javascript. The available pictures are all in this window and clicking one of them shows the selected picture and its name. I could copy the name and paste it into the form field but how could I transfer this name to the original form on close?


Keith
 
Thanks Kirsle
This is from within a Perl script using a bit of Javasript where necessary. I thought there may be a clever way of doing it using Perl.

Keith
 
Perl might be able to do it depending on the way Perl is used.

Is the Perl being used as CGI on a web server, in which a user accesses this webpage that pops up the window? If so, Perl probably isn't going to help you. When used as CGI, the Perl script is run on the server side, and whatever the script printed to STDOUT gets then sent to the user's browser. As far as the user is concerned, they simply received a web page from the server.

If this Perl is being run locally, i.e. your user installs Perl and downloads and runs your Perl program on their computer, then it might be possible using Win32::GuiTest or a similar module.

-------------
Cuvou.com | The NEW Kirsle.net
 
It is being used as CGI so sounds like it is a no no.
It is for a web site interface and allows the sysadmin to upload and change images on-line. I will stick with the copy and paste idea, for now.
Thanks again

Keith
 
Thanks for that.
We have been using the copy and paste method and I thought it would be nice to automate it. I don't think it is worth the hassle unless I find myself at a loose end some time.

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top