cancel
Showing results for 
Search instead for 
Did you mean: 

Browser Selection using Javascript

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

jamie_cawley
Advisor
Advisor
0 Kudos

You could also just use the

<PARAM NAME="DefaultItem" VALUE="yourDefault">

in the applet definition.

Regards,

Jamie

Former Member
0 Kudos

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.