Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 93989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:25:51+00:00 2026-05-10T23:25:51+00:00

I had a bunch of controls that I displayed, hid, enabled and disabled based

  • 0

I had a bunch of controls that I displayed, hid, enabled and disabled based on actions in the web page. Everything worked until i put them into an accordian. Now I can’t get the Javascript to be able to update their state. I have a small example

this is the Javascript

 <script type='text/javascript'>   var ctrl = document.getElementById('<%= btmRocp.ClientID %>');      function ShowPanel(control) {     alert('<%= btmRocp.ClientID %>');     ctrl.disabled = true; } </script>    

This is the Accordian

 <form id='form1' runat='server'>     <div>         <asp:ScriptManager ID='ScriptManager1' runat='server'>         </asp:ScriptManager>         <cc1:Accordion  ID='MyAccordion'                         runat='Server'                         SelectedIndex='0'                                              >          <Panes>             <cc1:AccordionPane ID='accordianPane0' runat=server>             <Header>Create New Report </Header>             <Content>a             <asp:Button ID='Button1'  onmouseup='ShowPanel('') ' runat='server' Text='Button' />                         <asp:Button ID='btmRocp' runat='server' Text='Button' />             </Content>             </cc1:AccordionPane>             <cc1:AccordionPane ID='accordianPane1'  runat=server>             <Header>Create New Report </Header>             <Content>b</Content>             </cc1:AccordionPane>              </Panes>          </cc1:Accordion> 

I would love to know what i am doing wrong here the Alert prints out the right ID.

If i do something where i pass the ‘this’ Object to the function i can disable that button but I truly need it to disable, or hide like 10 objects

Does anyone have an idea?

Sample Code at http://www.riconllc.com/accordian.zip

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:25:52+00:00Added an answer on May 10, 2026 at 11:25 pm

    What is the default state of the Accordion? collapsed? I have no idea how the Accordion works, but I’m suspecting that it is modifying the HTML DOM such that when the page first loads ‘btmRocp’ is not actually present on the page itself, until it becomes ‘visible’. That is, it might be injecting controls into and out of the page, based on the accordion status.

    Your best bet in figuring out this behavior is to insert ‘debugger;’ statements into your page at appropriate points, to inspect the live DOM at those points in time.

    <textbox id='debugbox' onblur='this.value = eval(this.value);'></textbox> 

    Is a good way to monkey with script on your page as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 83k
  • Answers 83k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here is how to get text selection with Javascript. May 11, 2026 at 4:52 pm
  • Editorial Team
    Editorial Team added an answer It would be pointless. You would change the thing in… May 11, 2026 at 4:52 pm
  • Editorial Team
    Editorial Team added an answer Alex? http://www.haskell.org/alex/ a tool for generating lexical analysers in Haskell,… May 11, 2026 at 4:52 pm

Related Questions

I am developing a specialty application where the end-user needs to operate multiple controls
I'm working on porting my open source particle engine test from SDL to SDL
I have a project that I thought was going to be relatively easy, but
As part of a client support tool, I'm wanting to provide some functionality to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.