Thank you for the assistance all! I used event:false and it worked!
$("#accordion").accordion({autoHeight: false, event: false});
With this line, the accordion's menus do nothing when user clicks on
them. So I can write custom click() code to handle the accordion
navigation without the built-in accordion events firing and doing
stuff.
Works great now!
On Nov 28, 1:05 am, Ahmidou <[email protected]> wrote:
> hi
> try "event:false" option , it should work
>
> On 27 nov, 15:29, Stinky Tofu <[email protected]> wrote:
>
>
>
> > Okay, I've now tried to do the following work-around:
>
> > $('.ui-accordion').bind('accordionchangestart', function(event, ui) {
> > if (!validateStep())
> > {
> > event.stopPropogation();
> > }
> > });
>
> > This almost worked... but the problem is, the event.stopPropogation()
> > method's effects are permanent. In other words, if I call
> > stopPropogation on an event, the next time I try to activate the
> > event, the call does not propogate. From looking at the JQuery
> > documentation, there is no startPropogation call. So, in the above
> > code, what happens is: if the form is invalid and stopPropogation was
> > called, and then the user fixes the validation issues and re-submits
> > the valid form, nothing happens on theaccordionas stopPropogation
> > has been called and the code will not be executted.
>
> > Is there any way in JQuery to stop execution of code one time only, so
> > that next time the event fires the code will execute and propogate
> > thru the elements? Or am I going about this in completely the wrong
> > way?
>
> > I have been stuck on this code for a while now and am running out of
> > ideas.... help me obi-wan! You're my only hope!
>
> > Thanks.
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.