Best way to ask a user to input a date? - blackberry

How can I ask my user to input a date in my Blackberry application?
What controls does the RIM offer me to show my users something familiar and easy to implement?

If you're working on a Blackberry Web content, you might want to use HTML5 for getting dates,
<div>
<b>Date Input:</b> <br/>
Dates between 2010 - 2018: <input type="date" id="txtDate" min="2010-01-01" max="2018-12-31" value=""/>
</div>

Take a look at the DateField control. Also - new to the 5.0 API is a DateTimePicker control which is an improved version of the control.

Related

LastPass - What exactly does this do "Respect AutoComplete=off: allow websites to disable Autofill"

It's a setting inside LastPass. There are settings where you can turn on and off autofill, but I have no idea what this does. I'd appreciate it if someone could educate me on this.
If a website uses something like this:
<input type="password" id="passwordP" class="form-inputText"
placeholder="Password" autocomplete="off" onfocus="pwdFocusP();">
Note the autocomplete keyword.
If you leave that option
Respect AutoComplete=off: allow websites to disable Autofill
in LastPass off it supposedly will not respect the site developer's request for a manual entry (or copy/paste of the value).

How to connect form with reCaptcha to Google spreadsheet

I have a form set up to connect its responses to a Google spreadsheet, but it is of late getting some spam, all of a very similar type. I cannot pin down the IP addresses like I usually do, to exclude them from the site, so I am trying to institute Google reCaptcha.
The submit button for the form as it is without reCaptcha is this code:
<input type="submit" name="submit" value="Send me the magazine" id="ss-submit" class="jfk-button jfk-button-action ">
The reCaptcha instructions say to use this for your button:
"Paste this snippet at the end of the <form> to create a button protected by reCAPTCHA. You will need to create a callback function to handle the result."
<button class="g-recaptcha" data-sitekey="SiteKeyHere" data-callback="YourOnSubmitFn">Submit</button>
I am not sure how to integrate the two buttons, if it is possible. I don't know what to do to "create a callback function to handle the result" as mentioned in the reCaptcha instructions. If you please could help me to understand this, I would be grateful.
Thank you.
Physically you can't. The office standard just won't have this enabled.
As far as I know reCaptcha only works on php type sites, not in an office file.
You can however set your spreadsheet to invite only.

html 5 input DateTime-Local any browser ios 9 native date time picker - how to select year?

I'm working on an html 5 business application and someone just discovered something weird in Beta testing that I can't find an answer to.
We have a form with date/time input on it:
<input type="datetime-local" step="any" id="StartDate" name="StartDate" value="2015-09-10T10:20:29">
In Safari / Chrome or Firefox browser in iPad or iPhone (IOS 9.02 just confirmed but older versions as well) when I click on the input field it correctly brings up the native date/time picker, however there is no facility to change the year.
It's just not an option at all. Am I missing something fundamental or is this a bug in IOS? Note that this works fine in all other platforms we've tested on with Chrome / FireFox, just not on IOS with it's native picker.
Support for the full range of date type inputs is not yet available in the majority of browsers hence the issue you are getting here. In order to use them, one solution is to utilize a polyfill that provides functionality that the browser does not support.
http://html5please.com/#date
An example is the forms polyfill from the webshims library.
$.webshims.polyfill('forms forms-ext');
Then it is possible to select the year when using your example above.
Webshim link:
http://afarkas.github.io/webshim/demos/
Configurator https://afarkas.github.io/webshim/demos/demos/cfgs/input-datetime-local.html#min=&max=&list=&step=&value=&startView=0&minView=0&stepfactor=&useDecadeBase=0&startValue=&calculateWidth=on&popover=&popover=&popover=
and fiddle https://fiddle.jshell.net/trixta/VNuct/light/ from the developer provide additional information on the use of webshims.
It is NOT a bug. As the Safari Developer Library states, the following values are only valid for datetime-local picker:
date. An input control for specifying a date value. The user can select a month, day of the month, and year. Unlike datetime, date
does not offer the time of day.
datetime. An input control for specifying a date and time value. The user can select a month, day of the month, year, and time of
day.
datetime-local. An input control for specifying a date and time value where the format depends on the locale.
You can find the whole documentation here:
https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/InputTypes.html
I would suggest you to combine date and datetime input fields in order to adapt your app for iOS browsers.
Add min/max attributes to enable scrolling to different years.
<input type="datetime-local" step="any" id="StartDate" name="StartDate" value="2015-09-10T10:20:29" min="1970-01-01T00:00" max="2030-01-01T00:00">
https://codepen.io/oriadam/pen/pxvqNE

jQuery Mobile - "in-page" dialog popup

I am looking for a somewhat slick solution to have an "in-page" dialog box on one of my JQM pages. I am trying to avoid leaving the page, because the dialog popup is a "lookup" that helps a user populate a form field. I don't want to leave the actual page, so to not lose any other information the user has already entered.
My first attempt was using the simpledialog2 plugin, which I use on other parts of the site for popup menus. While it works great for basic links, it gets really clunky on longer lists. It feels very limited when it comes to sizing and especially scrolling.
I somewhat like the built-in JQM implementation of the dialog popup for long multiselects. To give you an idea, take a look at this jsfiddle
Does anyone know how this dialog popup is implemented and if I can call the same method in some way? If not, does anyone know of alternatives to pro due such an "in-page" dialog?
Any help is appreciated.
PS: I can't use the multi-page template in JQM, because the site is built as a web app and I am relying on the AJAX loading of individual pages, which the multi-page template doesn't support.
The dialog you illustrated in your jsfiddle can easily be called in its own page. You can either put data-rel="dialog" in an anchor tag dialogor you can add data-role="dialog" to your page container. Here is an example
dialog.html
<div data-role="dialog">
<div data-role="header">
<h1>Header</h1>
</div>
<div data-role="content">
</div>
<div data-role="footer">
<h1>Footer</h1>
</div>
</div>​
Also note that they are planning on producing the in page dialogs I believe your looking for in JQM v 1.2 . Here is a preview of that http://filamentgroup.com/tests/popup/docs/pages/popup/index.html. So I guess if your really patient you'll get exactly what your looking for.
Here you need an undismissible popup rather than a dialog.
<div data-dismissible="false" data-role="popup" id="myPopup">
<span>Content...</span>
</div>
Now in javascript call,
$('#myPopup').popup().popup('open');

SharePoint 2010 'contentEditable' and Safari on iPad?

I'm just checking if you know a work-around to the problem where we can't use the contentEditable attribute on iPads? I know we can edit the compact.browser to redirect iPad users to the mobile version but we don't want to do this.
Is there some jQuery magic we can use or any 3rd party app you recommend for a rich experience with SharePoint 2010 and iPad?
Thanks in advance.
What you need is a rich text component that is based on canvas rather than contentEditable. Unfortunately such a thing doesn't yet exist as far as I am aware, at least not as a ready to use component.
You can use jQuery to update the content in any of SharePoint's editable areas and it will be saved (I know this mostly because it tends to save dynamic stuff I don't want saved), so it is possible to set something up with a textarea and sync script, but probably more work than you are looking for.

Resources