on 04-05-2004 1:32 PM
Hello I tried to implement an onClientRowSelection event on my TableView. But until now the javaScript is not even called. I need to get the selected Row from my TableView.
This is what I wrote until now:
The javaScript:
<script language="javascript" type="text/javascript">
function tableSelect(){
alert('abcdef');
}
</script>
The jsp:
table.setOnClientRowSelection("tableSelect");
Thanks for any suggestions.
Thanks for your suggestions but the error was neither the functionheader in the JavaScript nor a missing page tag.
You only have to set the complete function call into the onClientRowSelection attribute. e.g.:
table.setOnClientRowSelection("tableSelect(htmlbevent)");
With this functionality you have got more options for your JavaScript call, but the use is absolutely inconsistend to the normal Java function calls.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, even with the parameter it doesn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the htmlb documentation
If JavaScripts are used (for 'onClientClick' events) the page tag is necessary for the renderer to place the JavaScripts at the end of the page.
<hbj:content id="myContent">
<hbj:page title="sap">
...
</hbj:page>
</hbj:content>
Could this be the problem (no page element) ?
I belive the javascript method should have a parameter.
Try
<script language="javascript" type="text/javascript">
function tableSelect(htmlbEvent){
alert('abcdef');
}
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.