Content

File: javascript

2010-02-10 :: admin // javascript
jquery.dateTimePicker

I did a ground up re-write of my date-time picker. It now only relies on jQuery (1.4.1) and jQuery UI (1.8rc1). Use case is pretty simple right now: $(function(){ $(‘#datetimepicker’).dateTimePicker(); $(‘#datepicker’).dateTimePicker({showTime: false}); $(‘#timepicker’).dateTimePicker({showDate: false}); }); See the demo for more details. Enjoy!

 ::  (Read the rest of this)

2009-07-21 :: admin // javascript
jquery.dateTimePicker

A basic authentication scheme should go to some length to do a little bit of remembering in the event your user hits a restricted page before they are actually authenticated. First, some context. I’ve got this in my ApplicationController: def require_user unless current_user store_location redirect_to login_path return false end end def store_location session[:return_to] = request.request_uri [...]

 ::  (Read the rest of this)