Parent page
Function querylist () {var url = "./xtwh/personsearch. do? Method = personsearch & go = dialogwrapper "; url = URL. Replace ("? "," % 3f "); url = URL. replace (/\ &/g, "% 26"); url = URL. replace (// \=/g, "% 3d"); var OBJ = showmodaldialog (".. /dialogwrapper. JSP? Url = "+ URL, window," dialogwidth: 860px; dialogheight: 500px; scroll: No; Status: No; "); If (OBJ! = Undefined & OBJ! = NULL & OBJ! = "") {// Alert (OBJ); var TMP = obj. split ("|"); $ ("# sys_person_info_id "). val (TMP [0]); $ ("# name "). val (TMP [1]) ;}}
The dialogwrapper. jsp in the middle page is placed under webcontent and webroot.
<% @ Page Language = "Java" Import = "Java. util. * "pageencoding =" GBK "%> <HTML> Subpage
Function okradio (ID, name, sex) {VaR _ returnvalue = ID + "|" + name; parent. Window. returnvalue = _ returnvalue; window. Close ();}