Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

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.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -