• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submit values to Popup

 
Praveen K P
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
I am facing with a problem where I need to pass information from my parent page to a popup window. The scenario is like this:
In my parent page I have a lot of check boxes. When I click on a button, i need to submit the values of the checkboxes that are selected, to an action class, but the parent page should not get submited.

Is there any way I could handle this.

bye
Praveen
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Praveen K P ",

You have already been asked once (here) to change your display name to conform to JavaRanch standards. This is not optional.

Visit JavaRanch Naming Policy and adjust your display name to match it prior to your next post

Accounts with invalid display names are closed.

bear
Forum Bartender
 
Ajay Krihnamurthy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi u have to use the URL rewrite process to solve ur problem.. please go thru this sample code
function openPopup() {
var s = "/popup.jsp?prodId="+document.frm.prodId.value;
window.open(s,"Popup", "top=0,left=0,toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,width=400,height=500");

} u know the above one is the javascript to open the popup window. There u can see a product value (ie from ur checkbox .. u have to split the selected checkbox id values with "," like 12,34,36). In the popup.jsp u can get the values using request.getParameter("prodId").

Suppose if u are using the using Servlet for Popup u can get the value with in the doGet() method ..

hi re let me know ur reply in ajaydev_ikhan@yahoo.com
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajay, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

Please read this for more information.

thanks,
bear
Forum Bartender
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic