mrfoh / cordova-datepicker-plugin

Datepicker for Apache Cordova
Apache License 2.0
13 stars 4 forks source link

widget does not display #2

Closed HugoCornelis closed 10 years ago

HugoCornelis commented 10 years ago

Great project!

I am new to cordova development and trying out this plugin with the 'time' mode. Installation went fine but I cannot get it to work in the android emulator. The datetime picker widget does not show up in the app.

I currently have html code like this in my app:

<button class="nativetimepicker">
  My native time picker.
</button>

I also tried this with

and

elements, with empty elements, but they all give the same result.

I also copied the unmodified javascript of the documentation to an appropriate location in the 'deviceready' callback in the index.js file.

Help appreciated, thanks.

mrfoh commented 10 years ago

Hello Hugo, glad you found the plugin useful. Unfortunately I have similar issues with time mode of the plugin. Am not the original author of the plugin. I ported it to Cordova 3.0.0. On 4 Dec 2013 19:31, "Hugo-Cornelis" notifications@github.com wrote:

Great project!

I am new to cordova development and trying out this plugin with the 'time' mode. Installation went fine but I cannot get it to work in the android emulator. The datetime picker widget does not show up in the app.

I currently have html code like this in my app:

I also tried this with

and elements, with empty elements, but they all give the same result.

I also copied the unmodified javascript of the documentation to an appropriate location in the 'deviceready' callback in the index.js file.

Help appreciated, thanks.

— Reply to this email directly or view it on GitHubhttps://github.com/mrfoh/cordova-datepicker-plugin/issues/2 .

HugoCornelis commented 10 years ago

Thanks for your quick answer.

The plugin now mysteriously does show up. So I am sure I have done something stupid in my previous trials.

This is the relevant snippet of HTML code I am currently using:

<input name="timepicker" id="timepicker" readonly="1" class="nativetimepicker" />

With the same javascript as before.

Now I still have the problem with the timepicker only showing up once. I saw the 'trick' for working with the 'date' mode. I am still relatively naive regarding javascript, could you guess for a similar trick for the 'time' mode?

mrfoh commented 10 years ago

Am not anywhere close to my computer at the moment, but when I get back I'll look at it. On 4 Dec 2013 21:07, "Hugo-Cornelis" notifications@github.com wrote:

Thanks for your quick answer.

The plugin now mysteriously does show up. So I am sure I have done something stupid in my previous trials.

This is the relevant snippet of HTML code I am currently using:

With the same javascript as before.

Now I still have the problem with the timepicker only showing up once. I saw the 'trick' for working with the 'date' mode. I am still relatively naive regarding javascript, could you guess for a similar trick for the 'time' mode?

— Reply to this email directly or view it on GitHubhttps://github.com/mrfoh/cordova-datepicker-plugin/issues/2#issuecomment-29840225 .

HugoCornelis commented 10 years ago

I cannot remember what exactly I changed. Now things work as expected.

So I close this issue.

Thanks for the help.

karthikmanoharan commented 10 years ago

Great work!

I do it in windows phonegap 3.4 but it is not working give me some suggestions

mrfoh commented 10 years ago

The plugin only works for android os

Best regards Patrick Foh

On May 7, 2014, at 3:01 PM, karthikmanoharan notifications@github.com wrote:

Great work!

I do it in windows phonegap 3.4 but it is not working give me some suggestions

— Reply to this email directly or view it on GitHub.

karthikmanoharan commented 10 years ago

Thanks for your reply,can you suggest me any plugin for android and windows please. i am using windows 8 phone gap

mrfoh commented 10 years ago

Check out the phonegap build service it has a lot of plugins for various platforms. You could also check UI frameworks like kendo UI, it may have the date picker component you could use. Good luck

Best regards Patrick Foh

On May 7, 2014, at 3:54 PM, karthikmanoharan notifications@github.com wrote:

Thanks for your reply,can you suggest me any plugin for android and windows please. i am using windows 8 phone gap

— Reply to this email directly or view it on GitHub.