Wednesday 15 June 2011

javascript - How to implement the DATE PICKER in PhoneGap/Android? -


I have tried to apply a date picker in Android. I want to get this data and show it in text format

  & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" charset = "utf-8" src = "cordova-2.5.0.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" charset = "utf-8" src = "datePickerPlugin.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" charset = "UTF-8" & gt; Function dateTest () {var myNewDate = new date (); Window.plugins.datePicker.show ({blank: myNewDate, mode: 'date', // blank permission for both the date or time or the blank: true}, function (returning) {var newDate = new date (return date); CurrentField.val (NewDate.toString ("dd / MMM / yyyy"); // This resolves the problem you mentioned at the bottom of this script with which it does not work for the second / third time, because this focus In CurrentField.blur ();}); } & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body bgcolor = "# ffffff" & gt; & Lt; Hour & gt; Detopayer Test & lt; Hour & gt; & Lt; Br> & Lt; Input type = "button" onClick = "dateTest ()" value = "today's date !!" / & Gt; & Lt; Div id = "view" & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;   

I'm getting this as a warning ... but unable to store it as a string on the same page

A input type = "date" & gt; will depend on the interpretation of all device devices, this does not work in some Android devices. ,

There's more to it, plugins, ads, whatever,

I personally prefer, and use mobile carols I do:

For help, I think that payment is made?, Is not it?

No comments:

Post a Comment