Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
jQuery Accordian Help (Lock Sections)
Old 09-20-2010, 11:37 AM jQuery Accordian Help (Lock Sections)
Ultra Talker

Posts: 366
Name: Steve
Location: Miami, FL, Earth
Trades: 0
Anyone know if it's possible (and if so how) to "lock" specific sections of the accordian so they're not clickable/accessible until "unlocked"?

I've searched for hours and can't find anything documented. May have to write an extension...
__________________
- Steve

President,
Please login or register to view this content. Registration is FREE
smoseley is offline
Reply With Quote
View Public Profile Visit smoseley's homepage!
 
 
Register now for full access!
Old 09-20-2010, 12:51 PM Re: jQuery Accordian Help (Lock Sections)
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
The easiest thing to do will be to create a child of each accordion member that has the same dimensions as its parent, then when you need to "lock" it, use event.stopPropogation() in response to a click
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-20-2010, 04:03 PM Re: jQuery Accordian Help (Lock Sections)
Ultra Talker

Posts: 366
Name: Steve
Location: Miami, FL, Earth
Trades: 0
But that wouldn't have a "disabled" style to it, would it? I don't want the user thinking the accordion is broken, prefer to transmit via the interface that the section is disabled.
__________________
- Steve

President,
Please login or register to view this content. Registration is FREE
smoseley is offline
Reply With Quote
View Public Profile Visit smoseley's homepage!
 
Old 09-20-2010, 04:19 PM Re: jQuery Accordian Help (Lock Sections)
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
well, you'd have to add a class or something that would indicate that it's disabled. Then, override the normal style from your stylesheet. based on the presence of that class. All this depends on exactly on the implementation requirements, but I don't know of any way to do this without hacking something together in a custom fashion.

Just to be clear, you're talking about the Accordions in the jQuery UI library listed here http://jqueryui.com/demos/accordion/ right?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-26-2010, 05:51 PM Re: jQuery Accordian Help (Lock Sections)
Ultra Talker

Posts: 366
Name: Steve
Location: Miami, FL, Earth
Trades: 0
Yeah, talking about UI Accordion. I'll probably wind up just extending it with some additional functionality... I really need to be able to control user access to form sections in latter parts of the accordion.

FYI, what I'm looking for in terms of final result is something along the lines of Magento's checkout page. Multi-part form controlled in a backwards-only accordion that auto-forwards through steps. Will post again when I'm done... someone else could probably use something like this.
__________________
- Steve

President,
Please login or register to view this content. Registration is FREE
smoseley is offline
Reply With Quote
View Public Profile Visit smoseley's homepage!
 
Reply     « Reply to jQuery Accordian Help (Lock Sections)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44711 seconds with 12 queries