我需要一個時間選擇器在我的rails應用程序,和jquery datebox似乎完美,但我不能使它的工作。jquery datebox沒有模式的名稱加載/模式沒有給出
在我application.html.haml我有
%link{:href => "http://code.jquery.com/mobile/latest/jquery.mobile.min.css", :rel => "stylesheet", :type => "text/css"}/
%link{:href => "http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.min.css", :rel => "stylesheet", :type => "text/css"}/
%script{:src => "http://code.jquery.com/mobile/latest/jquery.mobile.min.js", :type => "text/javascript"}
%script{:src => "http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.core.min.js", :type => "text/javascript"}
%script{:src => "http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.mode.calbox.min.js", :type => "text/javascript"}
%script{:src => "http://dev.jtsage.com/cdn/datebox/i18n/jquery.mobile.datebox.i18n.en_US.utf8.js", :type => "text/javascript"}
而且我HAML代碼
%label{:for => "mydate"} Some Time
%input#mydate{"data-options" => "{\"mode\" => \"flipbox\"}", "data-role" => "datebox", :name => "mydate", :type => "date"}/
如下所示http://cl.ly/image/1Y0t210L3a3c
錯誤我一直有這個被翻譯爲http://cl.ly/image/1a0l3A20471r
我嘗試了不同的盒子類型datebox,但只有calbox的作品。
感謝
男人謝謝你的時間。說實話,我前進,使用本機軌道日期和時間選擇器。但是也許有時候我會測試這個,直到那時,我會感謝你! – vladCovaliov 2013-04-24 05:02:42
這個答案沒有解決問題 – ajbraus 2013-08-22 03:41:31