Is there anyway I can pass a javascript variable to a Modal?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Option 1:
Try this.. while opening the modaldialog send the window as the parameter
and in the modal window
now parWin contains your parent window object.
From here you can now access all data from your parent, be it variables or methods.
Option 2:
And we pass the array a to the dialog box:
The callee 7b.html includes the following script:
Some other reading on this:
http://www.webreference.com/js/column90/
http://www.webreference.com/js/column90/7.html
http://www.webreference.com/js/column90/8.html