Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have bind a table in to grid and which has chekbox for every row in a popup window. Here i need get value from that popup window what are checked in popup window. Example i have one button like Add Department in main Page. If i click this button there is popup window which has checkbox for every department. here i need store department information in SelectedDepartmenttbl table after click button Adddepartmrnt in popup window.
kindly help me...
Posted

1 solution

First of all, I would advise you to refrain from using popup windows, because they annoyed to many people, mostly due to Web ads, so many will use browser plug-ins to block them. I don't mean "modal popup" here, I mean window created with JavaScript window.open:
http://www.w3schools.com/jsref/met_win_open.asp[^].

Now, if you still want to do that, note that this call returns a reference to the newly created window. Through this reference, you can access anything in its content through the DOM:
http://www.w3schools.com/jsref/obj_window.asp[^].

First of all, pay attention for the document property:
http://www.w3schools.com/jsref/dom_obj_document.asp[^],
http://www.w3schools.com/jsref/dom_obj_document.asp[^].

From this point, you can see that you can use that window's document in the same way as you use the current document (the one accessed from the JavaScript on the current page).

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900