<?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: Form property set/get error with MooTools in Internet Explorer</title>
	<atom:link href="http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/</link>
	<description>Sharing what I know and learn about CSS, MooTools, Javascript, PHP and etc.</description>
	<lastBuildDate>Fri, 13 Aug 2010 06:08:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Garrick</title>
		<link>http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/comment-page-1/#comment-15123</link>
		<dc:creator>Garrick</dc:creator>
		<pubDate>Fri, 13 Aug 2010 06:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.garrickcheung.com/?p=30#comment-15123</guid>
		<description>@Roark: Glad you found it, and not a rock in your machine. :)</description>
		<content:encoded><![CDATA[<p>@Roark: Glad you found it, and not a rock in your machine. <img src='http://www.garrickcheung.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garrick</title>
		<link>http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/comment-page-1/#comment-15121</link>
		<dc:creator>Garrick</dc:creator>
		<pubDate>Fri, 13 Aug 2010 06:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.garrickcheung.com/?p=30#comment-15121</guid>
		<description>@Bharati, glad I could help. If you need help, drop by the #mootools IRC chatroom. Myself and others will be able to assist you there.</description>
		<content:encoded><![CDATA[<p>@Bharati, glad I could help. If you need help, drop by the #mootools IRC chatroom. Myself and others will be able to assist you there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharati</title>
		<link>http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/comment-page-1/#comment-14927</link>
		<dc:creator>Bharati</dc:creator>
		<pubDate>Thu, 05 Aug 2010 12:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.garrickcheung.com/?p=30#comment-14927</guid>
		<description>Thanks for the suggestion.It helped me a lot!!
There is one more problem I am facing.
I have an Image in Div tag and in javascript I want to get the coordinates of the image relative to div
I am using MooTools(1.2.3) Library
The code is working in ff and crome but not in IE

The Error is at the below line
InputTopID.setAttribute(&#039;value&#039;,ImgID.getCoordinates(DivID).top);

where ImdID is image.
DivID is Div(100px by 100px)
InputTopID is a Hidden field.

getCoordinates method does not work with ImgID
Can anyone help?</description>
		<content:encoded><![CDATA[<p>Thanks for the suggestion.It helped me a lot!!<br />
There is one more problem I am facing.<br />
I have an Image in Div tag and in javascript I want to get the coordinates of the image relative to div<br />
I am using MooTools(1.2.3) Library<br />
The code is working in ff and crome but not in IE</p>
<p>The Error is at the below line<br />
InputTopID.setAttribute(&#8216;value&#8217;,ImgID.getCoordinates(DivID).top);</p>
<p>where ImdID is image.<br />
DivID is Div(100px by 100px)<br />
InputTopID is a Hidden field.</p>
<p>getCoordinates method does not work with ImgID<br />
Can anyone help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roark</title>
		<link>http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/comment-page-1/#comment-13446</link>
		<dc:creator>Roark</dc:creator>
		<pubDate>Fri, 04 Jun 2010 07:35:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.garrickcheung.com/?p=30#comment-13446</guid>
		<description>Just before I was ready to grab a rock and smash my machine into 100,000 little tiny pieces, I found your post...

I love it when sh*t like that happens.

GREAT POST!

Die IE6</description>
		<content:encoded><![CDATA[<p>Just before I was ready to grab a rock and smash my machine into 100,000 little tiny pieces, I found your post&#8230;</p>
<p>I love it when sh*t like that happens.</p>
<p>GREAT POST!</p>
<p>Die IE6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garrick</title>
		<link>http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/comment-page-1/#comment-6390</link>
		<dc:creator>Garrick</dc:creator>
		<pubDate>Wed, 29 Jul 2009 02:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.garrickcheung.com/?p=30#comment-6390</guid>
		<description>@Rhys Burnie:
I came across this problem while trying to display a password input&#039;s default value as text to inform the visitor where to type their password, like &quot;Type Password Here&quot;. With Javascript available, I could easily switch the input from text to password once the visitor began typing.

Like you said, this occured because of IE&#039;s security &quot;feature&quot;. Switching a password inputs type from &quot;password&quot; to anything else will be denied. The error you experienced only appeared through MooTools because a function executed by the .set() method most likely returned an unexpected value.

To get around this you can use my &lt;a href=&quot;http://www.garrickcheung.com/mootools/textoverlay-class/&quot; rel=&quot;nofollow&quot;&gt;Text Overlay Class&lt;/a&gt; or MooTools-More 1.2.3.1 OverText Class. Mine was inspired by MooTools-More&#039;s version, just lighter weight.</description>
		<content:encoded><![CDATA[<p>@Rhys Burnie:<br />
I came across this problem while trying to display a password input&#8217;s default value as text to inform the visitor where to type their password, like &#8220;Type Password Here&#8221;. With Javascript available, I could easily switch the input from text to password once the visitor began typing.</p>
<p>Like you said, this occured because of IE&#8217;s security &#8220;feature&#8221;. Switching a password inputs type from &#8220;password&#8221; to anything else will be denied. The error you experienced only appeared through MooTools because a function executed by the .set() method most likely returned an unexpected value.</p>
<p>To get around this you can use my <a href="http://www.garrickcheung.com/mootools/textoverlay-class/" rel="nofollow">Text Overlay Class</a> or MooTools-More 1.2.3.1 OverText Class. Mine was inspired by MooTools-More&#8217;s version, just lighter weight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rhys Burnie</title>
		<link>http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/comment-page-1/#comment-6389</link>
		<dc:creator>Rhys Burnie</dc:creator>
		<pubDate>Wed, 29 Jul 2009 01:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.garrickcheung.com/?p=30#comment-6389</guid>
		<description>I also noticed a problem if you try to change the type of a type=&quot;passowrd&quot; field to type=&quot;text&quot; using .set()

All id/name attributes were unique and didnt match an attribute name (like in the action example)

Im guessing its a security thing in IE but it causes an error if using the debugger it says the error is in mootools even tho it clearly isnt since .set() work for everything else in IE.

Firefox had no problem changing type=&quot;password&quot; to type=&quot;text&quot;</description>
		<content:encoded><![CDATA[<p>I also noticed a problem if you try to change the type of a type=&#8221;passowrd&#8221; field to type=&#8221;text&#8221; using .set()</p>
<p>All id/name attributes were unique and didnt match an attribute name (like in the action example)</p>
<p>Im guessing its a security thing in IE but it causes an error if using the debugger it says the error is in mootools even tho it clearly isnt since .set() work for everything else in IE.</p>
<p>Firefox had no problem changing type=&#8221;password&#8221; to type=&#8221;text&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sjon Hortensius</title>
		<link>http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/comment-page-1/#comment-5959</link>
		<dc:creator>Sjon Hortensius</dc:creator>
		<pubDate>Sun, 12 Jul 2009 09:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.garrickcheung.com/?p=30#comment-5959</guid>
		<description>Thanks for this solution. As a proper integration, I have added this to my iefix, as an addition to mooTools 1.2:

&lt;code&gt;Element.implement({
	getProperty: function(attribute)
	{
		var EA = Element.Attributes, key = EA.Props[attribute];

		if (this.tagName == &#039;FORM&#039;)
			var value = (key) ? this[key] : this.getAttributeNode(attribute).nodeValue;
		else
			var value = (key) ? this[key] : this.getAttribute(attribute, 2);

		return (EA.Bools[attribute]) ? !!value : (key) ? value : value &#124;&#124; null;
	}
});&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for this solution. As a proper integration, I have added this to my iefix, as an addition to mooTools 1.2:</p>
<p><code>Element.implement({<br />
	getProperty: function(attribute)<br />
	{<br />
		var EA = Element.Attributes, key = EA.Props[attribute];</p>
<p>		if (this.tagName == 'FORM')<br />
			var value = (key) ? this[key] : this.getAttributeNode(attribute).nodeValue;<br />
		else<br />
			var value = (key) ? this[key] : this.getAttribute(attribute, 2);</p>
<p>		return (EA.Bools[attribute]) ? !!value : (key) ? value : value || null;<br />
	}<br />
});</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/comment-page-1/#comment-5764</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Tue, 07 Jul 2009 20:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.garrickcheung.com/?p=30#comment-5764</guid>
		<description>Oh my holy hell... thank you.</description>
		<content:encoded><![CDATA[<p>Oh my holy hell&#8230; thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey</title>
		<link>http://www.garrickcheung.com/javascript/form-property-setget-error-with-mootools-in-internet-explorer/comment-page-1/#comment-989</link>
		<dc:creator>Jeffrey</dc:creator>
		<pubDate>Tue, 31 Mar 2009 21:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.garrickcheung.com/?p=30#comment-989</guid>
		<description>Wow! VERY useful for me to know - thanks!  I hope that is finding its way into Mootools 1.3!  Geez.  IE, I swear...</description>
		<content:encoded><![CDATA[<p>Wow! VERY useful for me to know &#8211; thanks!  I hope that is finding its way into Mootools 1.3!  Geez.  IE, I swear&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
