|
August 28, 2001 Passing an Array to the Dialog Box Tips: August 2001
Yehuda Shiran, Ph.D.
|
|
A powerful way to pass information between the caller and the callee in Internet Explorer is through an object. You can pass its properties from the caller to callee and back from the callee to the caller. You can also define the object's methods within the caller and use them within the callee. In fact, you can pass the caller window object to the callee. in this way, you ensure the callee has access to the caller's variables and functions.
Let's see an example. Our caller invokes the callee to prompt the user for his or her favorite color. The color is communicated back to the caller via the caller's
The favorite color field, For more on modal and modeless dialog boxes, go to Column 90, Modal and Modeless Dialog Boxes.
People who read this tip also read these tips: Look for similar tips by subject: |