Accordion not recognised

A

alden alex

Hi,

I have an ASP page with Accordion Panel(dreamweaver spry widget) in it.
It was working properly.
Recently, I organized the code into subroutines..and the accordion panel
does not work anymore. The same piece of code works fine outside the
subroutine, but not inside.
The contents are displayed, but it is not accordion panel anymore.
I wonder if it is something to do with defining the new accordion
variable. I have defined it as new spry.widget javascript variable
globally. And then I call it with <div id ='accordionvariablename'
within the subroutine.
Can anybody please help? I spent a lot of time debugging, maybe I am
looking at it fromthe wrong direction.

Thanks
 
R

RobG

Hi,

I have an ASP page with Accordion Panel(dreamweaver spry widget) in it.
It was working properly.
Recently, I organized the code into subroutines..and the accordion panel
does not work anymore. The same piece of code works fine outside the
subroutine, but not inside.
The contents are displayed, but it is not accordion panel anymore.
I wonder if it is something to do with defining the new accordion
variable. I have defined it as new spry.widget javascript variable
globally. And then I call it with <div id ='accordionvariablename'
within the subroutine.
Can anybody please help? I spent a lot of time debugging, maybe I am
looking at it fromthe wrong direction.

You are probably asking this question in the wrong group. This group
deals with implementations of ECMAScript, generally called javascript,
primarily in web browsers[1]. If your question is about the code
delivered to the client, then how you generate it is irrelevant (it
doesn't matter if it's Dreamweaver or ASP generated).

You may get help if you post a link to a page that demonstrates the
issue. You can post a *minimal* example of script and HTML here, but
in this case the example is likely too big for that. Often the
exercise of creating a minimal example illustrates the cure and
further posts aren't required. At the very least, show a link to a
page with the original code and your re-factored version.

You won't get much help with the issue without showing the client side
javascript code and related HTML.


1. FAQ <URL: http://www.jibbering.com/faq/#appropriateQuestions >
 
J

JR

I have an ASP page with Accordion Panel(dreamweaver spry widget) in it.
It was working properly.
Recently, I organized the code into subroutines..and the accordion panel
does not work anymore. The same piece of code works fine outside the
subroutine, but not inside. [...]
Can anybody please help? I spent a lot of time debugging, maybe I am
looking at it from the wrong direction.

Hi,
It's impossible to say anything with such information. One would need
to compare spry library with your code, which is very time consuming.
So, why don't you go back and let original code unchanged until you
feel more confident to modify spry library.

Cheers,
Joao Rodrigues
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top