window URL return value

hi,



I am using dhtmlx window…its wonderful, i have a requirement like When user select search button i need to come up with a dhtmlxwindow in which i am calling my searching jsp page url…its working perfect. But after selecting required value from the search result, i need to pass the value back to the page where user select the search button.



appreciate if you comeup with an answer.



regards

murray.

Hello,

Try this:

main_page.html
>>

var selectedValue = null; // here will selected value
var dhxWins = new dhtmlXWindows();

dhxWins.window(id).attachURL(“inner_page.jsp”);


inner_page.jsp >>

<select id=“mySelect”>
    one
    two

<input type=“button” value=“Select” onclick=“doOnSelect();”>



Note that selectedValue and dhxWins (if you are clising window from inner page) should be global variables.