Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Passing a Value from Popup Window back to the Parent Window

 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although it is about a popup window, I think my question is JSF specific.

I have successfully popped up a window. I am trying to pass a value that is enterend in a popup window text field and the popup window has a button.

I have seen an example code to pass a value from a popup window back to the parent window. In that example, the value to be passed back is set by clicking on a <h:outputLink>. See below


and the JavaScript in that page is like:

My popup window is somewhat different. I have to provide a text field for users to fill out a value. And there is a button in the popup window to submit the value. The <h:inputtext> tag does not accept the "var" attribute. How do I modify the code to do what I am trying to achieve?

and I think my JavaScript in the popup window should be:
 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What browser do you use? IE or firefox or...?
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the Netscape and Mozilla.
 
Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic