on 11-27-2007 11:35 AM
Hi All,
I am using a multi select ibrowser for a query data set.I am calling a function on selection of that item on browser. But on page load I need to take default as first row of that browser and need to call the function related to that. But i am willing to keep that row showing as selected on browser. Is there anyway i can do that using javascript....?
There is one more button on the same screen which says 'Show for next Row' like that sort. On clicking that button I need to unselect the earlier one and need to select the next row of that browser and call the same browser select function.
I didn't get any applet method for selecting a browser row using javascript.
Any ideas will be appreciated....
Regards,
Satish
You could also just use the
<PARAM NAME="DefaultItem" VALUE="yourDefault">
in the applet definition.
Regards,
Jamie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satish,
You can use this method to display an item by default as the ist row of ibrowser on page load .
document.Appletname.getBrowserObject().setDefaultItem(variable_name);
To select next row of an ibrowser after click 'Show for next Row' button, you can use this method:
var vVariable = document.Appletname.getBrowserObject().getItemAt(int itemNo);
document.Appletname.getBrowserObject().setDefaultItem(vVariable );
Just try this out.This may work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.