• Post Reply Bookmark Topic Watch Topic
  • New Topic

sending values to java script  RSS feed

 
Rehana Shaik
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • 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
 
seb petterson
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • 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('<hutputText 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
  • 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
 
ansar basha
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rehana,

May be you can try this.

<hutputLink value="mypage.jsp" target="new">
<f:param name="nameofparam" value="valuetobepassed"> </f:param>
<hutputText value="soemthing"> </hutputText>
</hutputLink>

Thanks
Ansar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!