Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

to get restrict pop window values based on parent window  RSS feed

 
Prem Shankar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-I have list page, with set of records(An arrayList of Java Objects is iterated).
- In the list page i have check box to select few records.
- Then there is a button Print.
- On click of the button, a pop should be thrown with the list of selected(checked) records.
- Now, i have to read the selected chekboxes to identify those selected.


Since we are not submitting the page , i cant read thru request.getParameter(). The values can be read thru "opener.document.forms[0]..." How can i use those JavaScript variables for selecting the selected records only from the (Java)ArrayList.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66184
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. Javascript and Java can never inter-operate in this fashion.

You either need to submit the form to the popup, or add the values to the URL of the popup in a query string.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!