jquery + iframe passing values
-
i have a search on my aspx page and after entering serch text and on click of search button, i open a jquery modal window whioch loads a seperate aspx page in iframe. I have been unable to pass the values to by jquery modal and also which is the best way to get the values back from the modal. I am calling an external service in the popup which returns data. Thanks,
-
i have a search on my aspx page and after entering serch text and on click of search button, i open a jquery modal window whioch loads a seperate aspx page in iframe. I have been unable to pass the values to by jquery modal and also which is the best way to get the values back from the modal. I am calling an external service in the popup which returns data. Thanks,
Do you have to pass value to the Popup and get back to the Main page?
sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464
-
Do you have to pass value to the Popup and get back to the Main page?
sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464
yes sunasara
-
yes sunasara
You can get Value of Parent page from child like
var parentTextValue = window.parent.document.forms[0].txtBox.value;
Now you can send value to the Parent like
window.parent.document.forms[0].txtBox.value = "Set from child"
Thanks, Imdadhusen
sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464
-
You can get Value of Parent page from child like
var parentTextValue = window.parent.document.forms[0].txtBox.value;
Now you can send value to the Parent like
window.parent.document.forms[0].txtBox.value = "Set from child"
Thanks, Imdadhusen
sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464
window.parent gives an error of null object