<?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>Comments on: Javascript: Pop up DHTML calendar using CSS</title>
	<atom:link href="http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/</link>
	<description>Freelance Web Designer &#38; Developer, Stewart Orr</description>
	<lastBuildDate>Thu, 25 Feb 2010 04:12:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: chuava</title>
		<link>http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/comment-page-1/#comment-571</link>
		<dc:creator>chuava</dc:creator>
		<pubDate>Tue, 05 Jan 2010 14:55:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/#comment-571</guid>
		<description>Very nice calendar! Saved me a lot time in coding my ERP project</description>
		<content:encoded><![CDATA[<p>Very nice calendar! Saved me a lot time in coding my ERP project</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mcs</title>
		<link>http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/comment-page-1/#comment-362</link>
		<dc:creator>Mcs</dc:creator>
		<pubDate>Tue, 20 Oct 2009 12:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/#comment-362</guid>
		<description>Works in IE+Opera+Firefox+Safari

that&#039;s what i looked

THANXXXXX)))))</description>
		<content:encoded><![CDATA[<p>Works in IE+Opera+Firefox+Safari</p>
<p>that&#8217;s what i looked</p>
<p>THANXXXXX)))))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chicas rubias</title>
		<link>http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/comment-page-1/#comment-341</link>
		<dc:creator>chicas rubias</dc:creator>
		<pubDate>Sun, 19 Jul 2009 00:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/#comment-341</guid>
		<description>nice! i&#039;m gonna make my own blog</description>
		<content:encoded><![CDATA[<p>nice! i&#8217;m gonna make my own blog</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miss cassandra</title>
		<link>http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/comment-page-1/#comment-307</link>
		<dc:creator>miss cassandra</dc:creator>
		<pubDate>Thu, 02 Apr 2009 14:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/#comment-307</guid>
		<description>I was having problems with another calendar + IE7 ... I found yours and want to say THANKS!!! I&#039;m in the US, so I did need to change the date format. Replace line 200 of ezcalendar.js with the following:
&lt;pre&gt;&lt;code&gt;getID(&quot;cell&quot;+r+c).href = &quot;javascript:setDateValue(&#039;&quot; + formatNumber(calendarDate.getMonth()+1) + dateSeparator + formatNumber(calendarDate.getDate()) + dateSeparator + calendarDate.getFullYear() + &quot;&#039;)&quot;;
&lt;/code&gt;&lt;/pre&gt;

makes the date mm/dd/yyyy ... hope it helps anyone else looking for the easy solution - thanks again! :)</description>
		<content:encoded><![CDATA[<p>I was having problems with another calendar + IE7 &#8230; I found yours and want to say THANKS!!! I&#8217;m in the US, so I did need to change the date format. Replace line 200 of ezcalendar.js with the following:</p>
<pre><code>getID("cell"+r+c).href = "javascript:setDateValue('" + formatNumber(calendarDate.getMonth()+1) + dateSeparator + formatNumber(calendarDate.getDate()) + dateSeparator + calendarDate.getFullYear() + "')";
</code></pre>
<p>makes the date mm/dd/yyyy &#8230; hope it helps anyone else looking for the easy solution &#8211; thanks again! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: weenaak</title>
		<link>http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/comment-page-1/#comment-295</link>
		<dc:creator>weenaak</dc:creator>
		<pubDate>Fri, 05 Dec 2008 17:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.qodo.co.uk/blog/javascript-pop-up-dhtml-calendar-using-css/#comment-295</guid>
		<description>I love the calendar, thanks! I have added some code to move the calendar if it falls off the page...

place this code in the showCalendar function after x and y have been defined. You must also define calendarWidth and calendarHeight before this code. You have to define them based on the number of rows and cols in the table, and the widths, heights, margins and borders in the css.


&lt;pre&gt;&lt;code&gt;// Move the calendar if it falls off the page
var pageWidth = 0;
var pageHeight = 0;
if (typeof( window.innerWidth ) == &#039;number&#039; ) {
	//Non-IE
	pageWidth = window.innerWidth;
	pageHeight = window.innerHeight;
} else if( document.documentElement &amp;&amp; (document.documentElement.clientWidth &#124;&#124; document.documentElement.clientHeight) ) {
	//IE 6+ in &#039;standards compliant mode&#039;
	pageWidth = document.documentElement.clientWidth;
	pageHeight = document.documentElement.clientHeight;
} else if( document.body &amp;&amp; (document.body.clientWidth &#124;&#124; document.body.clientHeight) ) {
	//IE 4 compatible
	pageWidth = document.body.clientWidth;
	pageHeight = document.body.clientHeight;
}
if(x+calendarWidth &gt; pageWidth) x = pageWidth - calendarWidth;
if(y+calendarHeight &gt; pageHeight) y = pageHeight - calendarHeight - 5; // subtract 5 because of the y+5 in the next line&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I love the calendar, thanks! I have added some code to move the calendar if it falls off the page&#8230;</p>
<p>place this code in the showCalendar function after x and y have been defined. You must also define calendarWidth and calendarHeight before this code. You have to define them based on the number of rows and cols in the table, and the widths, heights, margins and borders in the css.</p>
<pre><code>// Move the calendar if it falls off the page
var pageWidth = 0;
var pageHeight = 0;
if (typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	pageWidth = window.innerWidth;
	pageHeight = window.innerHeight;
} else if( document.documentElement &amp;&amp; (document.documentElement.clientWidth || document.documentElement.clientHeight) ) {
	//IE 6+ in 'standards compliant mode'
	pageWidth = document.documentElement.clientWidth;
	pageHeight = document.documentElement.clientHeight;
} else if( document.body &amp;&amp; (document.body.clientWidth || document.body.clientHeight) ) {
	//IE 4 compatible
	pageWidth = document.body.clientWidth;
	pageHeight = document.body.clientHeight;
}
if(x+calendarWidth &gt; pageWidth) x = pageWidth - calendarWidth;
if(y+calendarHeight &gt; pageHeight) y = pageHeight - calendarHeight - 5; // subtract 5 because of the y+5 in the next line</code></pre>
]]></content:encoded>
	</item>
</channel>
</rss>
