datebox

Jquery Mobile DateBox plugin only working when linked directly to page

限于喜欢 提交于 2019-12-11 04:11:49
问题 I am using the DateBox ( http://dev.jtsage.com/jQM-DateBox/ ) plugin for a page with the latest build of JqueryMobile but am finding an odd bug. When I open my app on index.html and navigate through the pages to the page with the date picker is I get this - http://cl.ly/19022K40472e3k0D0D2H However if I go direct to the page via the address bar it works fine and shows up as it should. So just wondering is anyone else having problems with this? Or any idea how to fix it? Also I might add does

dateFormat option for DateBox does not work?

白昼怎懂夜的黑 提交于 2019-12-11 01:17:31
问题 I am trying to get the dateFormat option of jtsage's jQuery-mobile DateBox plug-in to work. I have the following code in an HTML document: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" /> <link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/datebox

JQM Datebox remove Hours and Seconds from durationbox

被刻印的时光 ゝ 提交于 2019-12-10 20:48:40
问题 I've had a good look through their docs, but does anyone know if it is possible to remove the 'days' and 'seconds' options from the popup for the durationbox? Here is what I have: <label for="time">Duration (mins)</label> <input name="duration" id="duration" type="date" data-role="datebox" data-options='{"mode": "durationbox", "overrideDurationFormat": "%DM"}'> 回答1: yeah, something like: "overrideDurationOrder":["h","i"] I believe 回答2: You can try this: <input name="mydate" id="mydate" type=

How to programatically set a date in jquery mobile Datebox plugin 1.1.0

青春壹個敷衍的年華 提交于 2019-12-10 11:03:48
问题 I want to programmatically set date for the input with datebox control, For this i know i can use something like this $(element).trigger('datebox', {'method':'set', 'value':'dateString'}); but this doesn't seem to update the control(i.e when i open the calendar, it is set to current date and not equal to the value in the input field) EDIT: based on JTsage's pointers i overwrote the default dateformat to mm/dd/yyyy, using sth like this. jQuery.extend(jQuery.mobile.datebox.prototype.options

How to programatically set a date in jquery mobile Datebox plugin 1.1.0

十年热恋 提交于 2019-12-06 07:31:38
I want to programmatically set date for the input with datebox control, For this i know i can use something like this $(element).trigger('datebox', {'method':'set', 'value':'dateString'}); but this doesn't seem to update the control(i.e when i open the calendar, it is set to current date and not equal to the value in the input field) EDIT: based on JTsage's pointers i overwrote the default dateformat to mm/dd/yyyy, using sth like this. jQuery.extend(jQuery.mobile.datebox.prototype.options.lang, { 'en': { dateFormat: '%m/%d/%Y' } }); jQuery.extend(jQuery.mobile.datebox.prototype.options, {

How to disable the already selected date for next date box in J.T.Sage DateBox

拜拜、爱过 提交于 2019-12-02 08:38:37
问题 I my application i use jt.sage DateBox. I want to disable the already selected datepicker for next date box fields for example my Date1 is like 13.08.14 my other date box fields need to select after 13.08.14 (NOTE : depends on previous date fields) . Here is the FIDDLE FOR date box demo. It has lot of options like prevent tomorrow and yesterday day but not include after select the current date <label for="mydate">Date 1</label> <input id="date1" type="date" data-role="datebox" data-options='{

How to disable the already selected date for next date box in J.T.Sage DateBox

巧了我就是萌 提交于 2019-12-02 04:43:27
I my application i use jt.sage DateBox. I want to disable the already selected datepicker for next date box fields for example my Date1 is like 13.08.14 my other date box fields need to select after 13.08.14 (NOTE : depends on previous date fields) . Here is the FIDDLE FOR date box demo. It has lot of options like prevent tomorrow and yesterday day but not include after select the current date <label for="mydate">Date 1</label> <input id="date1" type="date" data-role="datebox" data-options='{"mode": "datebox", "useNewStyle":true}' onclick="filterDate(this.id);"/> <label for="mydate">Date 2<

How to limit the available Date ranges with the com.google.gwt.user.datepicker.client.DateBox

核能气质少年 提交于 2019-11-30 14:00:46
I need to limit what Dates a user can pick from the com.google.gwt.user.datepicker.client.DateBox . I can't seem to figure out how to limit the min Date so they can't pick past dates. If I can't do this with com.google.gwt.user.datepicker.client.DateBox is there an alternative DateBox widget that will allow me this kind of flexibility? Based on the suggestions I received, here is what I came up with that works on limiting the selectable dates to only the current day and after. This works on GWT 2.1.1 final DateBox dateBox = new DateBox(); dateBox.addValueChangeHandler(new ValueChangeHandler