...

View Full Version : Passing values from popup window to the mani page



sculptor
12-30-2007, 12:37 PM
Hello, i've been searching the forum for my problem but I didnt find a complete sulotion.

my problem is:

Suppose that I have a main page with a link that opens a popup window which has a link with a parameter and I want to pass the parameter to a text input in the main page,

how to do that?

thank you very much :)

paulb88
12-31-2007, 07:21 AM
I'm not sure if this helps but somehow maybe you could get an idea from here



<html>
<head>
<script type="text/javascript">
function disp_prompt()
{
var name=prompt("Enter the value the value of the prompt that you want to pass:");
if (name!=null && name!="")
{
prompt("It goes here:",name);
}
}
</script>
</head>
<body>

<input type="button" onclick="disp_prompt()" value="Display a prompt box" />

</body>
</html>

sculptor
12-31-2007, 08:08 AM
Thank you very much paulb88

but what I mean that i want to pass a prameter between the data from a web page and another page which is already open

suppose that im in a forum and i want to post new thread and i want to include some emotions which are in another page, so i click on a link which gives me a popup window with the emotions, whenever I click on any emotion it will be included in the area textbox at the other page of posting new thread.

hope that it is clear.

thank you again paulb88 :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum