Hi all,
I'm trying to build a webapp (PHP) that dynamically loads an
accordion, and I'm stuck with a problem: I don't want the content of
the accordion to be loaded with the accordion itself; so I created a
LoadContent() Javascript function to be invoked when I click on the
title of the accordion.
Since the accordion elements number is variable, I needed to build the
same number of "addEvent" at the bottom of my page;
My problem is: when the content of this page is requested, the
"addEvent" events are not added, but executed; the accordion content
is completely loaded (FireBug says that) and i don't need an
"addEvent" function any more (which I don't want).
I've tried adding the "domready" event, but it doesn't change
anything.
How can I do?
Thanks,
Claudio

Reply via email to