...

View Full Version : Passing values to other pages.



BarrMan
09-06-2006, 01:31 PM
It's not that simple as it sounds... I know about forms...
I want to send values to an input in another existing page.
For example:
I have a gallery, You can select which picture you want in this gallery and when you select it, it closes the currect page and sends the picture name to the other existing page i have on my browser.

Another explanation:
I click on gallery.asp from index.asp and from gallery.asp I select an image which i want this image to be sent to index.asp.

Thanks for the helpers!

dungsport
09-06-2006, 02:11 PM
main.html

<input type="text" id="output" value="old value" /><br>
<input type="button" value="Open popup" onclick="window.open('pop.html','abc','resizeable=no,height=200,width=200');" />

pop.html

<input type="button" value="Fill in" onclick="opener.document.getElementById('output').value = 'new value';" />

Mr J
09-06-2006, 02:54 PM
The information here might be of help to you as well

www.huntingground.freeserve.co.uk/scripts/passdata/p_data1.htm

BarrMan
09-06-2006, 07:31 PM
Thanks alot dungsport!!! You're the best! :thumbsup:
Mr J: Thanks alot too! :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum