<?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>Hdeya team blog &#187; IE</title>
	<atom:link href="http://www.hdeya.com/blog/tag/ie/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hdeya.com/blog</link>
	<description>We can make IT</description>
	<lastBuildDate>Sun, 28 Mar 2010 11:28:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>solution for imageareaselect jquery plugin problem with IE</title>
		<link>http://www.hdeya.com/blog/2009/10/solution-for-imageareaselect-jquery-plugin-problem-with-ie/</link>
		<comments>http://www.hdeya.com/blog/2009/10/solution-for-imageareaselect-jquery-plugin-problem-with-ie/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 11:20:41 +0000</pubDate>
		<dc:creator>Mahmoud M. Abdel-Fattah</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[imageareaselect]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=179</guid>
		<description><![CDATA[Ref. to this tutorial :
<a href="http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/" rel="nofollow">http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/</a>
For people who has problem with IE, the problem that first click on IE get selection.width &#38; selection.height = 0. therefore when the scaleX and scaleY divided by 0, it return Infinity. So here&#8217;s a simple Solution :
Just replace :

var scaleX = 100 / selection.width;
var scaleY = 100 / [...]]]></description>
			<content:encoded><![CDATA[<p>Ref. to this tutorial :<br />
<a href="http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/" rel="nofollow">http://www.webmotionuk.co.uk/jquery-image-upload-and-crop-for-php/</a></p>
<p>For people who has problem with IE, the problem that first click on IE get selection.width &amp; selection.height = 0. therefore when the scaleX and scaleY divided by 0, it return Infinity. So here&#8217;s a simple Solution :<br />
Just replace :</p>
<pre class="brush: javascript">
var scaleX = 100 / selection.width;
var scaleY = 100 / selection.height;
</pre>
<p>With :</p>
<pre class="brush: javascript">
if(selection.width != 0 &amp;&amp; selection.height != 0) {
var scaleX = 100 / selection.width;
var scaleY = 100 / selection.height;
} else {
var scaleX = 100;
var scaleY = 100;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hdeya.com/blog/2009/10/solution-for-imageareaselect-jquery-plugin-problem-with-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
