Creates several select controls in place of the html element with the id specified. It functions similar to "Ajax.InPlaceSelect" but instead it creates several select boxes with year, month, day, hour, minute for choosing date and time. Go to my site below for source/download and more information http://www.subzane.com/projects/ajaxinplacedatetimeselect/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Very nice blog design! As for the datetime control... how come no live demo? On 11/7/06, SubZane <subzane-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Creates several select controls in place of the html element with the > id specified. It functions similar to "Ajax.InPlaceSelect" but instead > it creates several select boxes with year, month, day, hour, minute for > choosing date and time. > > > Go to my site below for source/download and more information > http://www.subzane.com/projects/ajaxinplacedatetimeselect/ > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I return. Yea why no demo? I see about two pages of source code wasting space, but no demo..... -Andrew Martinez -----Original Message----- From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org]On Behalf Of Ryan Gahl Sent: Tuesday, November 07, 2006 11:13 AM To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails-spinoffs] Re: Ajax.InPlaceDateTimeSelect Very nice blog design! As for the datetime control... how come no live demo? On 11/7/06, SubZane < subzane-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:subzane-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: Creates several select controls in place of the html element with the id specified. It functions similar to "Ajax.InPlaceSelect" but instead it creates several select boxes with year, month, day, hour, minute for choosing date and time. Go to my site below for source/download and more information http://www.subzane.com/projects/ajaxinplacedatetimeselect/ http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Demo available here http://www.subzane.com/demos/ajaxinplacedatetimeselect/ Also new version of the script available http://www.subzane.com/projects/ajaxinplacedatetimeselect/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Cool. Thanks for the demo. Good job. I''ll have to grab the code now... I''ll be interested to see if you''ve provided hooks so I can override what actually gets used as the date picking widget. I.e. if I don''t want to use all those select boxes, and instead use a rich date picker. On 11/8/06, SubZane <subzane-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Demo available here > http://www.subzane.com/demos/ajaxinplacedatetimeselect/ > > Also new version of the script available > http://www.subzane.com/projects/ajaxinplacedatetimeselect/ > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry to inform you that it''s basicly locked to using selectboxes for the date. Maybe in some newer version I can add support for a date-picking-widget Ryan Gahl wrote:> Cool. Thanks for the demo. Good job. I''ll have to grab the code now... I''ll > be interested to see if you''ve provided hooks so I can override what > actually gets used as the date picking widget. I.e. if I don''t want to use > all those select boxes, and instead use a rich date picker. > > On 11/8/06, SubZane <subzane-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Demo available here > > http://www.subzane.com/demos/ajaxinplacedatetimeselect/ > > > > Also new version of the script available > > http://www.subzane.com/projects/ajaxinplacedatetimeselect/ > > > > > > > > > > > > -- > Ryan Gahl > Application Development Consultant > Athena Group, Inc. > Inquire: 1-920-955-1457 > Blog: http://www.someElement.com > > ------=_Part_26700_30287036.1162998405693 > Content-Type: text/html; charset=ISO-8859-1 > X-Google-AttachSize: 996 > > Cool. Thanks for the demo. Good job. I''ll have to grab the code now... I''ll be interested to see if you''ve provided hooks so I can override what actually gets used as the date picking widget. I.e. if I don''t want to use all those select boxes, and instead use a rich date picker. > <br><br><div><span class="gmail_quote">On 11/8/06, <b class="gmail_sendername">SubZane</b> <<a href="mailto:subzane-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">subzane-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> > <br>Demo available here<br><a href="http://www.subzane.com/demos/ajaxinplacedatetimeselect/">http://www.subzane.com/demos/ajaxinplacedatetimeselect/</a><br><br>Also new version of the script available<br><a href="http://www.subzane.com/projects/ajaxinplacedatetimeselect/"> > http://www.subzane.com/projects/ajaxinplacedatetimeselect/</a><br><br><br><a href="http://www.someElement.com">http://www.someElement.com</a> > > ------=_Part_26700_30287036.1162998405693----~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Am I the only one who this doesn''t work for in IE? It works fine in Firefox, but not in IE (6 sp2) - Ian M9 Corp http://www.m9corp.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Also not working in IE for me (hadn''t tested that before) On 11/9/06, Ian <ian-40m7FdE+PqjQT0dZR+AlfA@public.gmane.org> wrote:> > > Am I the only one who this doesn''t work for in IE? It works fine in > Firefox, but not in IE (6 sp2) > > - Ian > M9 Corp > http://www.m9corp.com > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for testing that. Od you happen to know of a mirror to download Microsoft Script Debugger? Their validation never works for me =/ So irritating that even with IE7 their javascript error log still is worthless Ian skrev:> Am I the only one who this doesn''t work for in IE? It works fine in > Firefox, but not in IE (6 sp2) > > - Ian > M9 Corp > http://www.m9corp.com--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Doesn''t work in Safari either. Deco On Nov 9, 2006, at 12:21 PM, SubZane wrote:> > Thanks for testing that. Od you happen to know of a mirror to download > Microsoft Script Debugger? Their validation never works for me =/ > > So irritating that even with IE7 their javascript error log still is > worthless > > > Ian skrev: > >> Am I the only one who this doesn''t work for in IE? It works fine in >> Firefox, but not in IE (6 sp2) >> >> - Ian >> M9 Corp >> http://www.m9corp.com > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
SubZane wrote:> Thanks for testing that. Od you happen to know of a mirror to download > Microsoft Script Debugger? Their validation never works for me =/ > > So irritating that even with IE7 their javascript error log still is > worthlessYour "date selector" doesn''t provide any validation of the selected date, or attempt to restrict input to only valid dates. IE error messages are certainly not optimal, but can usually be tracked down. It appears that IE barfs at the same point Safari does, which is: Line: 70 Error: Expected identifier, string or number URL: http://www.subzane.com/demos/js/inplacedatetimeselect.js Which is the last line of: savingText: "Saving...", savingClassName: ''inplaceeditor-saving'', clickToEditText: "Click to edit", }, options || {} ); Your problems are compounded by making a reasonably simple control dependent on thousands of lines of (mostly irrelevant) code in 11 different script libraries. -- Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
... and in case you didnt spot it yet, the error is the last comma after "Click to edit". FF is lenient about allowing a trailing comma, IE is not. This is what jslint is for - to catch the silly stuff. Sam>IE error messages are certainly not optimal, but can usually be tracked >down. It appears that IE barfs at the same point Safari does, which >is: > > Line: 70 > Error: Expected identifier, string or number > URL: http://www.subzane.com/demos/js/inplacedatetimeselect.js > >Which is the last line of: > > savingText: "Saving...", > savingClassName: ''inplaceeditor-saving'', > clickToEditText: "Click to edit", > }, options || {} ); > > >Your problems are compounded by making a reasonably simple control >dependent on thousands of lines of (mostly irrelevant) code in 11 >different script libraries. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/11/06, Sam Foster <sam-WNdku5qRq3FWk0Htik3J/w@public.gmane.org> wrote:> > ... and in case you didnt spot it yet, the error is the last comma after > "Click to edit". FF is lenient about allowing a trailing comma, IE is > not. This is what jslint is for - to catch the silly stuff.You can also set javascript.options.strict to true in Firefox, and it will warn you "trailing comma is not legal in ECMA-262 object initializers". Very useful once you cleaned up Prototype to be warning-free so you don''t miss the warnings on your own code. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I did not know that, I will do that. Thanks Martin Bialasinski skrev:> On 11/11/06, Sam Foster <sam-WNdku5qRq3FWk0Htik3J/w@public.gmane.org> wrote: > > > > ... and in case you didnt spot it yet, the error is the last comma after > > "Click to edit". FF is lenient about allowing a trailing comma, IE is > > not. This is what jslint is for - to catch the silly stuff. > > You can also set javascript.options.strict to true in Firefox, and it > will warn you > "trailing comma is not legal in ECMA-262 object initializers". Very > useful once you cleaned up Prototype to be warning-free so you don''t > miss the warnings on your own code.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I''ve used JSLint and removed the errors. It now works in IE7. Dunno about Safari tho since I don''t have it =/ I still need to validate the input data tho Thanks for the testing and advice guys! The JS on my homepage as well as the demo is updated On Nov 15, 1:15 pm, "SubZane" <subz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I did not know that, I will do that. > Thanks > > Martin Bialasinski skrev: > > > On 11/11/06, Sam Foster <s...-WNdku5qRq3FWk0Htik3J/w@public.gmane.org> wrote: > > > > ... and in case you didnt spot it yet, the error is the last comma after > > > "Click to edit". FF is lenient about allowing a trailing comma, IE is > > > not. This is what jslint is for - to catch the silly stuff. > > > You can also set javascript.options.strict to true in Firefox, and it > > will warn you > > "trailing comma is not legal in ECMA-262 object initializers". Very > > useful once you cleaned up Prototype to be warning-free so you don''t > > miss the warnings on your own code.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
SubZane wrote:> I''ve used JSLint and removed the errors. It now works in IE7. Dunno > about Safari tho since I don''t have it =/FWIW, it "works" in Safari 2.0.4 (OS X 10.4).> I still need to validate the input data thoWhy not just let users enter the date themselves and validate it onchange or onsubmit? You also need to validate the time - you don''t want them selecting a time that didn''t or wont exist when going into daylight saving, and you need rules on how do deal with times that exist twice, like coming out of daylight saving. Business rules are required to sort out how to handle them. It is similar to the issue of adding 1 year to 29-Feb-2008 - is the answer 28-Feb-2009 or 01-Mar-2009? There is no general rule. Working with date and time is not trivial. :-) -- Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I was surprised to find that it let me select the date "February 30, 2006". I don''t remember that day, but perhaps I had a blackout. :-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---