mie2cod
12-05-2006, 01:58 AM
Hi.
I have worked the following which pass value from popup to one text input:
1) Index.html
<script>
function popup () {
//popup script
}
</script>
<form name="formname">
<input type="text" name="input1"><a href="javascript:void()" onclick="javascript:popUp('Pop.html')">Select</a>
</form>
2) Pop.html
<a href="javascript:void()" onclick="javascript:opener.document.formname.input1.value='Hello World!';self.close();">Hello World!</a>
How to pass the value from the same popup to more than one input, so i won't have to write 10 pop-up for 10 input. For example;
<input type="text" name="input1"><a href="javascript:void()" onclick="javascript:popUp('Pop.html')">Select</a>
<input type="text" name="input2"><a href="javascript:void()" onclick="javascript:popUp('Pop.html')">Select</a>
I have worked the following which pass value from popup to one text input:
1) Index.html
<script>
function popup () {
//popup script
}
</script>
<form name="formname">
<input type="text" name="input1"><a href="javascript:void()" onclick="javascript:popUp('Pop.html')">Select</a>
</form>
2) Pop.html
<a href="javascript:void()" onclick="javascript:opener.document.formname.input1.value='Hello World!';self.close();">Hello World!</a>
How to pass the value from the same popup to more than one input, so i won't have to write 10 pop-up for 10 input. For example;
<input type="text" name="input1"><a href="javascript:void()" onclick="javascript:popUp('Pop.html')">Select</a>
<input type="text" name="input2"><a href="javascript:void()" onclick="javascript:popUp('Pop.html')">Select</a>