But you didn't say "newbie to Javascript", so that means you might be quite well suited for the task. Wrapping jQuery-UI elements and jQuery plugins probably involves more javascript work than anything else, but enough dryml/Hobo work that it you'd still be learning things.

The simple example is hjq-datepicker. It contains basically the minimal amount of code in both hobo-jquery.dryml and hobo-jquery.js. As a corollary , hjq-dialog contains basically the same amount of code in hobo-jquery.dryml, but hobo-jquery.js contains substantially more.

If you want to give a poke at it, find a useful jQuery UI element or jQuery plugin, and then copy & modify the hjq-datepicker code.

The system test for hobo-jquery has bitrotted slightly. Hopefully I'll get a chance to bring it up to date. If you are actually going to take a poke at the project, I'm make it a priority.

Bryan


On 10-06-18 04:18 PM, Ronbo wrote:
I'd be glad to take a crack at this if I knew how ;)

As an absolute newbie to hobo, rails and ruby, I'd absolutely need
some hand holding to get started. But I'd appreciate the opportunity
to learn and (hopefully) help out. Once I get the hang of it, moving
on to other libraries should be fairly simple.

On Jun 17, 9:35 am, Bryan Larsen<[email protected]>  wrote:
This is an opportunity for anybody who wishes to find an easy way to
contribute to Hobo.

Wrapping a useful Javascript UI library with Hobo tags is easy and very
useful to beginners.  I started such a task with Javascript-UI
(http://cookbook.hobocentral.net/plugins/hobo-jquery).   I did the hard
work and haven't completed the easy work of wrapping the rest of the
tags.   By building on Hobo-JQuery you would get delayed initialization
(so the widgets would work inside of AJAX parts and hjq-input-many tags)
as well as the ability to pass non-string data to the widget.

Hobo-jQuery has some complicated stuff in it.   However, the datepicker
stuff in hobo-jquery is trivial and can be used as an example for
anybody who wants to add other widgets.

But most Javascript libraries will work without delayed initialization
and only take strings as configuration, so writing another plugin from
scratch is easy.

In the case of a toggle, the jQuery-UI accordion documentation basically
says that this is not a toggle.   Toggle's are trivial, here's how to do
them in plain jQuery.... :)

Bryan

On 10-06-16 08:50 PM, Matt Jones wrote:



On Jun 16, 2010, at 7:47 AM, Ronbo wrote:

Thanks Owen,

I was actually just thinking of a dumb div that has it's display
attrib toggled via javascript. I thought hobo might provide a tag for
this as a convenience, although it would not touch the back end at
all.

One of the designers I work with has been using the Easy Framework
(http://easyframework.com/) which has some nice canned JS stuff for
this. In particular, the "toggle" class might do what you want:

http://easyframework.com/demo_showhide.php

The only fussy thing I ran across was that it was painful to get a div
that displayed the *opposite* behavior (started out open but could be
closed). But it's not hard to write a little UJS-style stuff yourself
(in application.js, for instance) to grab appropriate tags and add a
simple toggle behavior.

--Matt Jones


--
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.

Reply via email to