views:

671

answers:

2

I've got an asp.net ajax style AccordionPane control that I am trying to get/set based on some user interactions. However it seems not let me do this with javascript:

function navPanelMove() {  
  var aPane = $get('ctl00_Accordion1_AccordionExtender_ClientState');  
  openPaneID = aPane.get_SelectedIndex();  // doesn't work
}
+2  A: 

You'll need to use $find('behaviorId')

You want the AjaxControlToolkit.AccordionBehavior object, not the DOM elements

Slace
A: 

Slace, you sir, are my new best friend

eviljack
haha I've done a lot of work with the AjaxControlToolkit and read a good portion of the source. There's a lot of ajax stuff on my blog too
Slace

related questions