Active
Project:
Craqbox
Version:
5.x-1.x-dev
Component:
Documentation
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 May 2007 at 22:48 UTC
Updated:
20 May 2007 at 00:10 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedit'll come soon. thanks.
Comment #2
Anonymous (not verified) commented+1 for this.
I am completely in the dark as to how to use this module. But it looks very promising!
Thanks,
txcrew
Comment #3
guardian commentedindeed documentation and features list would be welcome
does it offer something more than thickbox ? if not, is there really a need for another module ? somehow drupal is blurred by multiple modules achieving the same goals.
if you have same goals, join forces :)
regards.
Comment #4
Anonymous (not verified) commentedno this goes a completely different route.
I've been swamped with work on various other things and haven't gotten to getting someone to document it the properties.
This is at the top of the craqbox.js file but here im adding some quick comments..
The main thing about craqbox is I built it to be more of an application window vs just a content display window. Thickbox does not give you the ability to control your window in the way most jQuery plugins would work.
This offers callbacks and options.
You can also actually use craqbox like a jQuery plugin vs thickbox you cant.
A good example of craqbox being used is how I use it in the Quick Search module.
Here we save the instance if craqbox to Drupal.quicksearch.craqbox so we can control it as the user does searches. We give it the general data it needs to start, and later on when the user actually types in the search textfield.. we do this..
So here, I'm dynamically changing the content inside craqbox and the pagerSetup and tagSetup functions are simply use adding events and certain functionality to the content INSIDE craqbox. This you cannot do with thickbox.
This is the nice part about using $.craqbox('#element', {options}); instead of $('#element').craqbox({options});
One thing to note, You dont have to set attachEvent you can do attachEvent: null like I did with quicksearch and then as other things are going on, you can simply control your craqbox as needed.
Hope this helps people for a few weeks.. Hoping to get craqbox cleaned up more (its decently stable as is) and I have a few things I still want to add to it.