Currently hobo-jquery only has first class support for datepickers and
dialogs. That's partly because I haven't needed anything else in my own
apps, and partly because most other things are easy to do without a
plugin. Forms inside of dialogs would be much harder without the
plugin, for instance.
Once you've installed the plugin, go to the jqueryui.com website for
examples. For example, accordion (http://jqueryui.com/demos/accordion/)
has this example:
<div id="accordion">
<h3><a href="#">First header</a></h3>
<div>First content</div>
<h3><a href="#">Second header</a></h3>
<div>Second content</div>
</div>
And:
jQuery(document).ready(function(){
$('.accordion .head').click(function() {
$(this).next().toggle();
return false;
}).next().hide();
});
The first part can be put into any DRYML file.
The second part can be placed in public/javascripts/application.js, with
one modification: replace any '$' with jQuery, like so:
jQuery(document).ready(function(){
jQuery('.accordion .head').click(function() {
jQuery(this).next().toggle();
return false;
}).next().hide();
});
If you have any other questions, don't hesitate to ask!
On 10-11-06 08:42 PM, Pedro wrote:
Hi there,
Im a newbie trying to use hobo-jquery plugin, so could somebody tell
me, step-by-step how to implement a grid or an Accordion. I did the
plugin installation, but I didnt find examples on how to use it.
Thanks!
Pedro
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.