Politics, Programming and Possibilities
26 Jan
Bundles that include javascripts, stylesheets and images are getting easier and easier. It’s a wonderful time to be a Rails developer
For those who would like to know what bundled_resource is, check out my earlier post that introduces the problem and solution offered by this package.
This release marks a much improved and nearly completely rewritten dynarch calendar bundle. Here’s what’s new:
Version 0.9 of bundled_resource now also includes a “stateful_form” bundle that makes it easier to store the open/closed states of form sections. This is particularly useful for AJAX forms that have hidden sections that the user can open up. When the form is submitted to the server and returned with an error, the form will retain its open/closed states so that it’s just as the user expects it.
You can download bundled_resource 0.9 here (345 KB) or use the subversion repository directly:
svn://syncid.textdriven.com/svn/opensource/bundled_resource/trunk
Compliments of syncPEOPLE social conference software development
7 Responses for "Bundled Resource v. 0.9<br>Full Dynarch Calendar Support"
This is truly excellent.
Small bug in convert_calendar_field.js, however. The date is not initially set, so the calendar popup displays today’s date as the selected date at first.
Fix:
add value=’” + initial_date + “‘ to dynarch_contents on line 24.
[...] I did a presentation at our local Utah Ruby Users Group tonight on the motivation and application of the bundled_resource plugin. [...]
I’ve got this running and it’s date BUT it doesn’t handle :include_blank. Am I missing something or is this feature not present in the current version?
Thanks.
Very cool plugin, thanks a lot!
However, the language feature for the Dynarch Calendar does not work for me… trying it with the ‘fr’ language returns a bunch of undefined fields!
I’m having a problem with the Dynarch calendar helper.
Specifically, my browser gets all hung up on line 33 of convert_calendar_field.js:
container = $(tag_id + ‘_container’);
Safari says: TypeError - Object (result of expression $) does not allow calls.
Any thoughts?
Hi,
I’m having the same problem cited by Chris,
The javascript console in Firefox says:
Error: $ is not defined
Source File:../javascripts/convert_calendar_field.js
Line: 33
Once the view is rendered, the standard date_select output is displayed.
Is this a bug?
Greetings, R.
Chris and rlora,
It’s doing that because you don’t have the javascript included for the prototype library.
You have to add:
<%= javascript_include_tag :defaults %>
before the call to javascript_auto_include_tags, and it should work.
I added support for LightBox2 (http://www.huddletogether.com/projects/lightbox2/), and sent it to Duane, but I don’t know if he got the email.
Leave a reply