Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7735199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:26:27+00:00 2026-06-01T07:26:27+00:00

I’m trying to use PhoneGap DatePicker plugin (PhoneGap 1.5 (Cordova) in Xcode 4.2) for

  • 0

I’m trying to use PhoneGap DatePicker plugin (PhoneGap 1.5 (Cordova) in Xcode 4.2) for iOS. I added the DatePicker.h and DatePicker.m files into Plugins folder and DatePicker.js into www folder. Also, I edited the Cordova.plist file to add a new entry for DatePicker plugin with “DatePicker” as key and “DatePicker” as value. I’m using the following code to show DatePicker

var cb = function(date) {
    console.log(date.toString());
    document.getElementById("date").innerHTML = date.toString();
}

var show = function(mode) {
    plugins.datePicker.show({
        date: new Date(),
        mode: mode, //date or time or blank for both
        allowOldDates: false
        }, cb);
}

but it’s not working. Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:26:29+00:00Added an answer on June 1, 2026 at 7:26 am

    During phonegap development I used to following approach to determine why a plugin was not working:

    For this I use Weinre. Start the weinre server, include the weinre javascript in your page and deploy your application to a device that is in the same (wireless) network or run in on the iOS simulator. (Do not forget to include the weinre server ip address under the ExternalHosts key in the file used to be named Phonegap.plist)

    Now when the application is running, have can go to the debug console and inspect the value of window.plugins. You can do this by simply typing window.plugins into the console.
    If you don’t see the plugin listed, you need to check if the .m and .h files are correctly added to the project. In Xcode it is easy to make a mistake and accidentally include them by reference.

    If the plugin is available, you can directly try to invoke it using the Weinre remote debug console. You should also get some good feedback in case of any errors.

    At this point you usually nailed down the error. If the datepicker is available to phonegap but still it is not behaving correctly, you can now set breakpoints in the .m file and run the application in Debug Mode on the iOS simulator from XCode. Now step trace through the plugin code to find out why the native iOS code is not working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.