<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jquery Archives - MIDAS - Room Booking System | Blog</title>
	<atom:link href="https://mid.as/blog/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>...Making your facilities work for you!</description>
	<lastBuildDate>Sun, 31 Jan 2021 23:21:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>A New Calendar Widget</title>
		<link>https://mid.as/blog/a-new-calendar-widget/</link>
					<comments>https://mid.as/blog/a-new-calendar-widget/#respond</comments>
		
		<dc:creator><![CDATA[midas]]></dc:creator>
		<pubDate>Thu, 01 Oct 2020 13:00:00 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[v4.26]]></category>
		<guid isPermaLink="false">https://mid.as/blog/?p=3109</guid>

					<description><![CDATA[<p>If you&#8217;ve previously used MIDAS, you&#8217;ll be familiar with the small calendar &#8220;widget&#8221; that appears throughout the software allowing you to select dates. MIDAS v4.26 (and later) now use a slightly different calendar &#8220;widget&#8221; to previous versions. Here&#8217;s a comparison of the two: What&#8217;s changed? We&#8217;ve been developing MIDAS for over 15 years now! Ever [&#8230;]</p>
<p>The post <a href="https://mid.as/blog/a-new-calendar-widget/">A New Calendar Widget</a> appeared first on <a href="https://mid.as/blog">MIDAS - Room Booking System | Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>If you&#8217;ve previously used MIDAS, you&#8217;ll be familiar with the small calendar &#8220;widget&#8221; that appears throughout the software allowing you to select dates.</p>



<p>MIDAS v4.26 (and later) now use a slightly different calendar &#8220;widget&#8221; to previous versions.</p>



<p>Here&#8217;s a comparison of the two:</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://mid.as/blog/wp-content/uploads/2020/09/jscal2.png"><img fetchpriority="high" decoding="async" width="382" height="246" src="https://mid.as/blog/wp-content/uploads/2020/09/jscal2.png" alt="The calendar widget in v4.25 (and earlier)" class="wp-image-3110" srcset="https://mid.as/blog/wp-content/uploads/2020/09/jscal2.png 382w, https://mid.as/blog/wp-content/uploads/2020/09/jscal2-300x193.png 300w" sizes="(max-width: 382px) 100vw, 382px" /></a><figcaption>The calendar widget in v4.25 (and earlier)</figcaption></figure></div>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://mid.as/blog/wp-content/uploads/2020/09/jqueryui.png"><img decoding="async" width="382" height="246" src="https://mid.as/blog/wp-content/uploads/2020/09/jqueryui.png" alt="The new calendar widget in v4.26+" class="wp-image-3111" srcset="https://mid.as/blog/wp-content/uploads/2020/09/jqueryui.png 382w, https://mid.as/blog/wp-content/uploads/2020/09/jqueryui-300x193.png 300w" sizes="(max-width: 382px) 100vw, 382px" /></a><figcaption>The new calendar widget in v4.26+</figcaption></figure></div>
</div>
</div>



<h2 class="wp-block-heading">What&#8217;s changed?</h2>



<p>We&#8217;ve been developing MIDAS for over 15 years now! Ever since our very first release we&#8217;ve been using a JavaScript calendar widget originally called &#8220;DHTML Calendar&#8221;. This was later renamed to &#8220;Dynarch Calendar&#8221; &#8211; or &#8220;JSCal2&#8221; for short. </p>



<p>From MIDAS v4.26 we&#8217;ve dropped JSCal2 in favor of jQuery UI&#8217;s &#8220;datepicker&#8221;.</p>



<h2 class="wp-block-heading">Why the change?</h2>



<p>Back when we started development on MIDAS in 2005, there were very few calendar widgets available that allowed embedding a fully-featured date picker into a web page. After testing a number of alternatives at the time, we chose the &#8220;DHTML Calendar&#8221; as it was known back then.</p>



<p>This was a freely available calendar widget that had been in active development by the author for two years previous. It provided all the functionality that we needed for use in MIDAS.</p>



<p>Development of the &#8220;DHTML Calendar&#8221; continued over the years, with regular releases. A re-written &#8220;version 2&#8221; was then released and the project renamed to &#8220;Dynarch Calendar&#8221; (JSCal2).</p>



<p>Unfortunately, development of JSCal2 ceased in 2010.</p>



<p>Since then, JSCal2 has continued to function with the odd &#8220;patch&#8221; or two we&#8217;ve made. </p>



<p>However, there comes a time when a decision has to be made about the feasibility of continuing with JSCal2 going forward. We&#8217;ve now made that decision and have decided to drop JSCal2 in favor of jQuery UI&#8217;s &#8220;datepicker&#8221;.</p>



<p>jQuery UI&#8217;s &#8220;datepicker&#8221; is in active development and is arguably one of the most popular date pickers/calendar widgets in use today. It has both a large user and developer base and is well-supported.</p>



<h2 class="wp-block-heading">What are the benefits of the new calendar widget?</h2>



<p>In recent years, the limitations of JSCal2 have become more apparent. </p>



<p>For example, to select multiple dates in a JSCal2 calendar, a user would need to hold down the Control (Ctrl) or Command (Cmnd) key on their keyboard whilst clicking on a date.</p>



<p>Several years ago become the advent of tablets and touch screen devices this wasn&#8217;t a problem &#8211; as everyone used a keyboard.</p>



<p>However, in today&#8217;s world that&#8217;s not always the case, and so we needed a calendar widget that would allow selecting multiple dates regardless of whether the user was using a keyboard or not.</p>



<p>We&#8217;ve been able to achieve this with the new calendar widget in MIDAS v4.26.</p>



<p>There are also performance benefits over the new calendar widget. Web standards and performance have improved and evolved over the years. The now obsolete JSCal2 &#8211; whilst very advanced for its time, is no longer advanced or efficient by today&#8217;s modern standards.</p>



<h2 class="wp-block-heading">What differences will I see?</h2>



<p>Probably the first thing you&#8217;ll notice with the new calendar widget is its size (compare the two images above). The old JSCal2 widget was quite small and not idea for use on touch-devices. The new widget uses a slightly larger font and increased spacing. This not only helps make it more legible, but easier to use on smaller touch screens.</p>



<p>You&#8217;ll also notice that the top part of the calendar widget has changed.</p>



<p>Previously, the top of the calendar contained four arrow buttons, allowing you to jump forward or back by either a month or a year at a time. Additionally, you could also click the Month/Year heading to select a specific month/year to jump to.</p>



<p>The new calendar widget only has two arrow buttons, allowing you to jump backwards or forwards by a month at a time. However, the main month/year header is actually now two separate drop-down lists making it really easy to select a month or year to quickly jump to.</p>



<h2 class="wp-block-heading">Why use a &#8220;widget&#8221; at all?</h2>



<p>Back when we started MIDAS development there were few native interactive elements you could embed within a web page that would work in all web browsers.</p>



<p>You could essentially include very basic form elements &#8211; text inputs, drop-down lists, check/radio boxes, and the like.</p>



<p>There was no native way to include a calendar or date picker within a web page.</p>



<p>Today the range of native interactive elements available include a whole host of controls; including color pickers, sliders, email address and telephone inputs, and even date pickers.</p>



<p>Unfortunately support for native date pickers at present isn&#8217;t universal among web browsers. Safari browsers for example have <a href="https://caniuse.com/input-datetime">no support as yet</a> for native date pickers.</p>



<p>Those browsers which do native support a date picker element, all <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date">render them differently</a>, and only provide very basic date picking functionality. At present, there is no support for selecting multiple dates, for example.</p>



<p>Native date pickers are still in their &#8220;infancy&#8221;. There may come a time when MIDAS can utilize native date pickers rather than a 3rd party calendar &#8220;widget&#8221;. For now though, the new calendar widget we&#8217;re introducing in v4.26 offers all the functionality we need and should do for the foreseeable future.</p>
<p>The post <a href="https://mid.as/blog/a-new-calendar-widget/">A New Calendar Widget</a> appeared first on <a href="https://mid.as/blog">MIDAS - Room Booking System | Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mid.as/blog/a-new-calendar-widget/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching 2/33 queries in 0.006 seconds using Disk

Served from: mid.as @ 2026-04-07 17:19:04 by W3 Total Cache
-->