[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

using a dinamic div tag to populate a AccordionPAne's Content

Asked by Veljean in Asynchronous Javascript and XML (AJAX), JavaScript, Programming for ASP.NET

hi , i having problems trying to dynamically populate the content of a AccordionPAnel,  I insert with innerHTML a lot of HTML code to the div tag routeresults, but it  looks like the panel doesn't register the content. Although is shown the size of the panel is small (like if werent nothing inside)... if i insert static content everything works fine... how i can use a dynamic div inside here?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
<ajaxToolkit:Accordion ID="MyAccordion" runat="server" 
                           SelectedIndex="0" 
                           HeaderCssClass="accordionHeader" 
                           ContentCssClass="accordionContent" 
                           FadeTransitions="true" 
                           FramesPerSecond="40" 
                           TransitionDuration="250"
                           AutoSize= "None">
                 <Panes>
                      <ajaxToolkit:AccordionPane ID = "AccordionPane1" runat = "server" Height = "400px" >
                      <Header>
                        <a href = "" onclick = "return false;" class = "accordionLink">  </a>
                        <asp:Label ID="Label10" runat="server" Text="Plan de ruteo" CssClass="headerText" ForeColor="White"></asp:Label>
                      </Header>
                      <Content>
                       
                       
                           <div ID="routeresults" 
                             
                                 style="width:273px; background-color:&quot;#FFFFFF&quot;; height: 20px; text-align: left; line-height: normal; font-family: Arial; font-size: x-small; font-weight: bold; font-style: normal; font-variant: normal; color: #000000;" 
                                 align="center">
                           </div>
                         
                       
                      </Content>
                    </ajaxToolkit:AccordionPane> 
                    <ajaxToolkit:AccordionPane ID = "AccordionPane2" runat = "server">
                      <Header>
                        <a href = "" onclick = "return false;" class = "accordionLink">  </a>
                        <asp:Label ID="Label11" runat="server" Text="Itinerario" CssClass="headerText" ForeColor="White"></asp:Label>
                      </Header>
                      <Content>
                             
                             
                                <div ID="itinerary" 
                             
                                 style="width:273px; background-color:&quot;#FFFFFF&quot;; height: 20px; text-align: left; line-height: normal; font-family: Arial; font-size: x-small; font-weight: bold; font-style: normal; font-variant: normal; color: #000000;" 
                                 align="center">
                                
                                </div>
                                
                        
                      </Content>
                    </ajaxToolkit:AccordionPane> 
                 </Panes>
     </ajaxToolkit:Accordion> 
                
[+][-]11/06/09 11:45 PM, ID: 25765364Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/09/09 07:18 AM, ID: 25776604Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625