• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

sending values to java script

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am having a datatable. Inside datatable i am having a hyperlink which will open a popup page. Now i want to send some parameters(selected value) to the popup page . How can i get the selected value to the javascript ? so that i can use it in popup page.
Any one has any idea about this? please help me

Thanks in advance
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you open a popup page and you have sent it request parameters you can access these like this:

function someJavascript () {
alert('<h:outputText value=#{param.yourParam}/>')
}

If this script is in the popup page that is.
[ September 20, 2005: Message edited by: seb petterson ]
 
Rehana Shaik
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for ur response.
I inserted this in my code where i was opening a popup but it's not working. I want to send value to my child window from my parent and the value is inside datatable. I have to send the row number which is selected.
Please tell me how to do this
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rehana,

May be you can try this.

<h:outputLink value="mypage.jsp" target="new">
<f:param name="nameofparam" value="valuetobepassed"> </f:param>
<h:outputText value="soemthing"> </h:outputText>
</h:outputLink>

Thanks
Ansar
 
bacon. tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic