<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Kommentare zu: Date-Time-Picker with jQuery UI Datepicker</title>
	<atom:link href="http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/</link>
	<description>Visionen und Downloads</description>
	<pubDate>Sat, 13 Mar 2010 00:54:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Von: ythjk</title>
		<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/comment-page-1/#comment-76</link>
		<dc:creator>ythjk</dc:creator>
		<pubDate>Sun, 16 Aug 2009 16:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3visions.com/?p=3#comment-76</guid>
		<description>// Slider
  $('#minuteSlider').slider({
       orientation: "vertical",      
       range: 'min', 
       min: 0,
       max: 55,
      max: 55 
    minute can not chose the valut biger then 55.it must shold be 59 or 60.</description>
		<content:encoded><![CDATA[<p>// Slider<br />
  $(&#8217;#minuteSlider&#8217;).slider({<br />
       orientation: &#8220;vertical&#8221;,<br />
       range: &#8216;min&#8217;,<br />
       min: 0,<br />
       max: 55,<br />
      max: 55<br />
    minute can not chose the valut biger then 55.it must shold be 59 or 60.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: ythjk</title>
		<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/comment-page-1/#comment-74</link>
		<dc:creator>ythjk</dc:creator>
		<pubDate>Sun, 16 Aug 2009 16:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3visions.com/?p=3#comment-74</guid>
		<description>thank you!good jobs!
$('#tpSelectedTime .selHrs').effect('highlight', 1000);
but in ie7,report error: Microsoft JScript runtime error: Object does not support this property or method. remove this line will work fine in IE7.</description>
		<content:encoded><![CDATA[<p>thank you!good jobs!<br />
$(&#8217;#tpSelectedTime .selHrs&#8217;).effect(&#8217;highlight&#8217;, 1000);<br />
but in ie7,report error: Microsoft JScript runtime error: Object does not support this property or method. remove this line will work fine in IE7.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Sdanektir</title>
		<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/comment-page-1/#comment-67</link>
		<dc:creator>Sdanektir</dc:creator>
		<pubDate>Thu, 06 Aug 2009 19:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3visions.com/?p=3#comment-67</guid>
		<description>Thanks for post. Nice to see such good ideas.</description>
		<content:encoded><![CDATA[<p>Thanks for post. Nice to see such good ideas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Aggelos Karalias</title>
		<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/comment-page-1/#comment-62</link>
		<dc:creator>Aggelos Karalias</dc:creator>
		<pubDate>Tue, 04 Aug 2009 17:43:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3visions.com/?p=3#comment-62</guid>
		<description>An important note that I forgot in the previous post.

The $.datepicker.regional[renderedLang] of course needs the i18n js file of the datepicker included (in my app I edit the plugin to include it dynamically by the userLang specified by the user but this is not what everyone wants).

The problem is with the 'en' lang. When you specify english as the lang obviously you don't need to include a lang file, but $.datepicker.regional['en'] does not work because you must refer to the default region like this $.datepicker.regional['']. This is not so flexible and it needs one line to change with $.datepicker.regional['en']=$.datepicker.regional['']

You can just add $.datepicker.regional['en']=$.datepicker.regional[''] as a first line to this plugin if datepicker developers are not willing to include this.

Sorry for the long posts,
Aggelos Karalias</description>
		<content:encoded><![CDATA[<p>An important note that I forgot in the previous post.</p>
<p>The $.datepicker.regional[renderedLang] of course needs the i18n js file of the datepicker included (in my app I edit the plugin to include it dynamically by the userLang specified by the user but this is not what everyone wants).</p>
<p>The problem is with the &#8216;en&#8217; lang. When you specify english as the lang obviously you don&#8217;t need to include a lang file, but $.datepicker.regional['en'] does not work because you must refer to the default region like this $.datepicker.regional['']. This is not so flexible and it needs one line to change with $.datepicker.regional['en']=$.datepicker.regional['']</p>
<p>You can just add $.datepicker.regional['en']=$.datepicker.regional[''] as a first line to this plugin if datepicker developers are not willing to include this.</p>
<p>Sorry for the long posts,<br />
Aggelos Karalias</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Aggelos Karalias</title>
		<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/comment-page-1/#comment-61</link>
		<dc:creator>Aggelos Karalias</dc:creator>
		<pubDate>Tue, 04 Aug 2009 17:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3visions.com/?p=3#comment-61</guid>
		<description>Hi,

this is a great control indeed. It's really working and it's always a good job to extend an already successful plugin like ui.datepicker.

A thing that I really needed and it was missing is the dateFormat of the ui.datepicker. This control uses a hardcoded format like yy-mm-dd for dates making it not flexible, while it is very easy to make it use whatever dateFormat you want. I made the changes below and I think it works correctly now but you can test it better for any bugs...


Changes for dateFormat support:


1) Two extra "globar vars" were necessary so now I have something like: 

        var userLang 	 = arguments[0]['userLang'] &#124;&#124; 'en';
        var b24Hour	 = !(arguments[0]['americanMode'] &#124;&#124; false);
        var markerClass	 = 'hasDateTime';

        /**
         * This is the lang that the plugin was rendered finally if the userLang does not exist. 
         * This will be changed by renderPickerPlug() if the userLang exists and it's != 'en'
         */
        var renderedLang = 'en';

        /**
         * The format inserted by the user or a default if not. Default is 'yy-mm-dd' date specified by ISO8601.
         */
        var dateFormat 	 = arguments[0]['dateFormat'] &#124;&#124; 'yy-mm-dd'; //dafault ISO8601


2) Then into renderPickerPlug() a first line like this was added:

        function renderPickerPlug(b24Hour_,lang_) {
            renderedLang = (lang[lang_]) ? lang_ : 'en';
            ... //everything else same in here
        }


3) And the parseTime() was changed to split correctly the date and time splitting on the lastIndexOf(" ") only and with some options added to correct parse a date formatted with day/month names in the rendered locale:

        function parseTime (obj) {
            var timevalue = ($(obj).val() &#124;&#124; $(this).val());
            var time = {}
            time[0] = timevalue.substr(0, timevalue.lastIndexOf(" "));
            time[1] = timevalue.substr(timevalue.lastIndexOf(" ")+1, timevalue.length);

            ... //everything else same in here

            $('#datepicker').datepicker(
                'setDate',
                $.datepicker.parseDate(
                    datepicker_def['dateFormat'],
                    $('#pickerplug').data('lastdate'),
                    {
                        shortYearCutoff: 20,
                        dayNamesShort: $.datepicker.regional[renderedLang].dayNamesShort,
                        dayNames: $.datepicker.regional[renderedLang].dayNames,
                        monthNamesShort: $.datepicker.regional[renderedLang].monthNamesShort,
                        monthNames: $.datepicker.regional[renderedLang].monthNames
                    }
                ));
        }

and that was everything with a dateFormat option to the constructor you can use every format you want...

I am thinking about some other changes too, like seconds support and an option to disable the input that renders the plugin.

PS: a greek translation like this was added also and I post it here if you want to include it:
        
        lang['el'] = {
            time: 	'Ώρα',
            hour:	'Ώρα',
            minute:	'Λεπτά',
            close:	'Κλείσιμο'
        };


Thanks again for this wonderful plugin,
Aggelos Karalias</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>this is a great control indeed. It&#8217;s really working and it&#8217;s always a good job to extend an already successful plugin like ui.datepicker.</p>
<p>A thing that I really needed and it was missing is the dateFormat of the ui.datepicker. This control uses a hardcoded format like yy-mm-dd for dates making it not flexible, while it is very easy to make it use whatever dateFormat you want. I made the changes below and I think it works correctly now but you can test it better for any bugs&#8230;</p>
<p>Changes for dateFormat support:</p>
<p>1) Two extra &#8220;globar vars&#8221; were necessary so now I have something like: </p>
<p>        var userLang 	 = arguments[0]['userLang'] || &#8216;en&#8217;;<br />
        var b24Hour	 = !(arguments[0]['americanMode'] || false);<br />
        var markerClass	 = &#8216;hasDateTime&#8217;;</p>
<p>        /**<br />
         * This is the lang that the plugin was rendered finally if the userLang does not exist.<br />
         * This will be changed by renderPickerPlug() if the userLang exists and it&#8217;s != &#8216;en&#8217;<br />
         */<br />
        var renderedLang = &#8216;en&#8217;;</p>
<p>        /**<br />
         * The format inserted by the user or a default if not. Default is &#8216;yy-mm-dd&#8217; date specified by ISO8601.<br />
         */<br />
        var dateFormat 	 = arguments[0]['dateFormat'] || &#8216;yy-mm-dd&#8217;; //dafault ISO8601</p>
<p>2) Then into renderPickerPlug() a first line like this was added:</p>
<p>        function renderPickerPlug(b24Hour_,lang_) {<br />
            renderedLang = (lang[lang_]) ? lang_ : &#8216;en&#8217;;<br />
            &#8230; //everything else same in here<br />
        }</p>
<p>3) And the parseTime() was changed to split correctly the date and time splitting on the lastIndexOf(&#8221; &#8220;) only and with some options added to correct parse a date formatted with day/month names in the rendered locale:</p>
<p>        function parseTime (obj) {<br />
            var timevalue = ($(obj).val() || $(this).val());<br />
            var time = {}<br />
            time[0] = timevalue.substr(0, timevalue.lastIndexOf(&#8221; &#8220;));<br />
            time[1] = timevalue.substr(timevalue.lastIndexOf(&#8221; &#8220;)+1, timevalue.length);</p>
<p>            &#8230; //everything else same in here</p>
<p>            $(&#8217;#datepicker&#8217;).datepicker(<br />
                &#8217;setDate&#8217;,<br />
                $.datepicker.parseDate(<br />
                    datepicker_def['dateFormat'],<br />
                    $(&#8217;#pickerplug&#8217;).data(&#8217;lastdate&#8217;),<br />
                    {<br />
                        shortYearCutoff: 20,<br />
                        dayNamesShort: $.datepicker.regional[renderedLang].dayNamesShort,<br />
                        dayNames: $.datepicker.regional[renderedLang].dayNames,<br />
                        monthNamesShort: $.datepicker.regional[renderedLang].monthNamesShort,<br />
                        monthNames: $.datepicker.regional[renderedLang].monthNames<br />
                    }<br />
                ));<br />
        }</p>
<p>and that was everything with a dateFormat option to the constructor you can use every format you want&#8230;</p>
<p>I am thinking about some other changes too, like seconds support and an option to disable the input that renders the plugin.</p>
<p>PS: a greek translation like this was added also and I post it here if you want to include it:</p>
<p>        lang['el'] = {<br />
            time: 	&#8216;Ώρα&#8217;,<br />
            hour:	&#8216;Ώρα&#8217;,<br />
            minute:	&#8216;Λεπτά&#8217;,<br />
            close:	&#8216;Κλείσιμο&#8217;<br />
        };</p>
<p>Thanks again for this wonderful plugin,<br />
Aggelos Karalias</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: David Borgenvik</title>
		<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/comment-page-1/#comment-38</link>
		<dc:creator>David Borgenvik</dc:creator>
		<pubDate>Thu, 16 Jul 2009 09:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3visions.com/?p=3#comment-38</guid>
		<description>Hi,
This is great control thank you for all your work! 

I had a small problem with $("#tpSelectedTime .selMins") using the effect function, so I simple commented out that function-call and now I can use the control without any errors. Just thought I'd let you know there are probably lots of other effect methods that could be used for achieving what you wanted? Below is a copy of the FireFox Error Console message:
Error: $("#tpSelectedTime .selMins").effect is not a function
Source: http://blog.w3visions.com/wp-content/selfloaded/jquery_ui_datepicker/timepicker_plug/timepicker.js
Row: 122</description>
		<content:encoded><![CDATA[<p>Hi,<br />
This is great control thank you for all your work! </p>
<p>I had a small problem with $(&#8221;#tpSelectedTime .selMins&#8221;) using the effect function, so I simple commented out that function-call and now I can use the control without any errors. Just thought I&#8217;d let you know there are probably lots of other effect methods that could be used for achieving what you wanted? Below is a copy of the FireFox Error Console message:<br />
Error: $(&#8221;#tpSelectedTime .selMins&#8221;).effect is not a function<br />
Source: <a href="http://blog.w3visions.com/wp-content/selfloaded/jquery_ui_datepicker/timepicker_plug/timepicker.js" rel="nofollow">http://blog.w3visions.com/wp-content/selfloaded/jquery_ui_datepicker/timepicker_plug/timepicker.js</a><br />
Row: 122</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Drollinger</title>
		<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/comment-page-1/#comment-24</link>
		<dc:creator>Drollinger</dc:creator>
		<pubDate>Tue, 07 Jul 2009 08:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3visions.com/?p=3#comment-24</guid>
		<description>Looks great.
I haven't found other userful stuff for a date-time picker.
Thanks a lot</description>
		<content:encoded><![CDATA[<p>Looks great.<br />
I haven&#8217;t found other userful stuff for a date-time picker.<br />
Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: flash</title>
		<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/comment-page-1/#comment-23</link>
		<dc:creator>flash</dc:creator>
		<pubDate>Mon, 06 Jul 2009 16:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3visions.com/?p=3#comment-23</guid>
		<description>Great post!</description>
		<content:encoded><![CDATA[<p>Great post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Alex F.</title>
		<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/comment-page-1/#comment-21</link>
		<dc:creator>Alex F.</dc:creator>
		<pubDate>Sun, 05 Jul 2009 15:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3visions.com/?p=3#comment-21</guid>
		<description>I got tired of trying to pop it with a calendar image as I didn't want to rewrite or dig too much so I just used a background image for the text field and put a calendar icon in the back. Works well.</description>
		<content:encoded><![CDATA[<p>I got tired of trying to pop it with a calendar image as I didn&#8217;t want to rewrite or dig too much so I just used a background image for the text field and put a calendar icon in the back. Works well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Achutha Krishnan</title>
		<link>http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/comment-page-1/#comment-16</link>
		<dc:creator>Achutha Krishnan</dc:creator>
		<pubDate>Sun, 28 Jun 2009 11:48:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w3visions.com/?p=3#comment-16</guid>
		<description>Hello,

      That was a good one. Do you have option to click on Image and open as it is available in jQuery DatePicker?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>      That was a good one. Do you have option to click on Image and open as it is available in jQuery DatePicker?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
