• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

passing value to and from popup window  RSS feed

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have to do the following
When a user clicks on a link, I want to open a jsp in
new window , i want to pass some parameters to this
jsp, which i am doing by using
<html:link href="_blank" on click="javascript opup()">
Click here </html:link>
In my popup window i use opener.field to set the values in the first jsp
But my problem is depending upon the
value selected by the user on popup window i want to
get some extra info from database, and display it on the
first page.
withour submitting the first page
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when you call a pop up window, you need to make an object for it
function WindowOpen(){
NewWin=window.open(URL)
}
you reference the window from the main page by NewWin.document.FormName.ElementName.value;
You can reference the Main window from the pop up by using
parent.document.FormName.ElementName.value
 
ashish kulkarni
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am able to get the parameter from popup window,
but now my porlem is depending upon what parameter I get from the popup window, i want to get some extra information from database,
And i want to do it without submitting the first page,
I know a method using submitting to iframe, but i am nto abelt to determine at what point i must call this method, as i dont know when the popup window passes the parameter
Ashish
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!