Featured post
php - Can I Pass value from form to popup window, display something based on what was passed, then pass something back? -
i need using php , javascript.
i have 1 form, few inputs. 1 of them gender.
when click link/button need pass value of gender drop down popup.
based on value show either male or females portraits.
i'd pass value parent window once select portrait , click button.
i have code display portaits. how pass values , forth, , how make value passed parent window available php code in new popup?
any appreciated.
the problem defined, question still vague. i'll give shot though. if mean pop-up (separate window) rather on-page dialog (such jquery ui elements , forth), communication channel you'll want use object returned window.open()
communicate parent page child page, , window.opener
communicate child parent. example:
var genderpicker = document.getelementbyid('genderselect'); var gender = genderpicker.options[genderpicker.selectedindex].value; var portraitchooserwindow = window.open("path/to/script.ext?gender=" + gender); // portraitchooserwindow reference newly opened pop-up (or null if browser blocked pop-ups)
from child window, window.opener
reference parent window.
- Get link
- X
- Other Apps
Comments
Post a Comment