I’ve tried using libraries such as Lightbox, ThickBox, or iBox for
dialogs in my Rails apps (for example, thickbox is at
). They work great for simple stuff, but when I use them to host forms
and try to update divs inside the dialogs, I get weird results… like
RJS javascript outputs directly to the screen instead of being
executed.
Has anyone tried updating dialogs like this? What libraries have you
used.
It’s fairly powerful and quite stable. In general, once you get the
hang of Yahoo’s conventions – and the limitations of the library –
it works very well.
We started to use it for Lingr – http://lingr.com – but decided that
we couldn’t justify forcing that much JS on chatters just for a
sign-in dialog. That’s the downside of using YUI: even if you only
want a little, you have to accept a lot.
I’ve tried using libraries such as Lightbox, ThickBox, or iBox for
dialogs in my Rails apps (for example, thickbox is at Cody Lindley | Front-end/Client-side/JavaScript Engineer | Boise,Idaho
). They work great for simple stuff, but when I use them to host forms
and try to update divs inside the dialogs, I get weird results… like
RJS javascript outputs directly to the screen instead of being
executed.
I used Lightbox (the
version) with rjs quite heavily, while it worked well. You might want to
check if the rjs response comes back with the proper content type.
Normally this is the case, unless your app was developed with an earlier
rails version and you have left set_content_type kind of filter in. A
quick test would be rjs templates without lightboxes.
dialogs in my Rails apps
We started to use it for Lingr – http://lingr.com – but decided that
we couldn’t justify forcing that much JS on chatters just for a
sign-in dialog. That’s the downside of using YUI: even if you only
want a little, you have to accept a lot.