|
for example:
in 1stpage.asp i have textbox beside of it is a link if u click it pop up window will appear and display the information and if i choose one and click the submit button, it will display in text box in istpage.asp
pls. help
thanks
|
|
|
I assume you know how to pop the second window. So you want to know how to pass the selected value back to the textbox in the first page. Right?
Of course, there is always more than one way to skin a cat, but here`s what I like to do. (I use this all the time in my admin tools where the user needs to select an account or select a product or a warehouse, etc. They click a lookup icon, and up pops the list. When they pick on, I need to pass the value back to the main window.
In the second page have a function similar to this:
function ReturnThrow(fVal) {
self.opener.ReturnCatch(fVal);
self.close();
}
This passes the value (fVal) back to the function in page 1 and closes the popup window.
In the first page, have a function similar to this:
function ReturnCatch(fVal) {
/* Do what you want with the value here.
For example, you could place the value in a textbox.
*/
document.forms[0].AccountID.value = fVal;
}
|
|
|
|
|
|
|
|
|
|