Hi, I''m using rails 2.0 and trying to implement date picker using jquery. We installed all the required gems. I''m writing the code as like below In Layout <script> $(document).ready(function(){ $(''#example'').datepicker(); $(''#exampleRange'').datepicker({rangeSelect: true, firstDay: 1}); }); </script> in body <link rel="stylesheet" href="http://dev.jquery.com/view/trunk/themes/flora/flora.datepicker.css" type="text/css" media="screen" title="Flora (Default)"> <script src="http://dev.jquery.com/view/trunk/ui/current/datepicker/core/ui.datepicker.js"></script> <input type="text" id="example" value="Click inside me to see a datepicker" style="width:300px;"/> <input type="text" id="exampleRange" value="Range datepicker starting on Monday." style="width:300px;"/> I''m not getting any errors but this is not working. Please help me to get the answer. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hello, Am Montag, 31. Dezember 2007 schrieb Manjula Rajendran:> Hi, > > I''m using rails 2.0 and trying to implement date picker using jquery. We > installed all the required gems. I''m writing the code as like below > > > In Layout > > <script> > $(document).ready(function(){ > $(''#example'').datepicker(); > $(''#exampleRange'').datepicker({rangeSelect: true, firstDay: 1}); > }); > </script> > > in body > > <link rel="stylesheet" > href="http://dev.jquery.com/view/trunk/themes/flora/flora.datepicker.css" > type="text/css" media="screen" title="Flora (Default)"> > <script > src="http://dev.jquery.com/view/trunk/ui/current/datepicker/core/ui.datepic >ker.js"></script> <input type="text" id="example" value="Click inside me to > see a > datepicker" style="width:300px;"/> > <input type="text" id="exampleRange" value="Range datepicker starting on > Monday." style="width:300px;"/> > > I''m not getting any errors but this is not working. Please help me to > get the answer.Since the html-Code is rendered more or less correctly, this is nothing todo with Rails, it''s a clear JavaScript issue. Get yourself a script debugger,place some alerts, check, if scripts are executed, and so one. If you don''t want to bother with JavaScript and are not bound to jquery you can use http://code.google.com/p/calendardateselect/ Keep smiling yanosz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I tried in all the ways but still i din''t get the output for datepicker. Please anybody help me to get the output. Is that jquery supports rails 2.0.1? Thanks, manjula -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---