<?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: Safari Issue: Cascading of mouse events and why input type=&#8221;submit&#8221; wasn&#8217;t working</title>
	<atom:link href="http://almaer.com/blog/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working/feed" rel="self" type="application/rss+xml" />
	<link>http://almaer.com/blog/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working</link>
	<description>blogging about life, the universe, and everything tech</description>
	<lastBuildDate>Fri, 25 May 2012 17:57:23 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: joi</title>
		<link>http://almaer.com/blog/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working/comment-page-1#comment-39753</link>
		<dc:creator>joi</dc:creator>
		<pubDate>Thu, 16 Oct 2008 09:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working#comment-39753</guid>
		<description>Struggling with submit button in Safari. though working fine in other browsers.
Code as follows in jsp:
						
		

Kindly give me the the code so that i can try in safari</description>
		<content:encoded><![CDATA[<p>Struggling with submit button in Safari. though working fine in other browsers.<br />
Code as follows in jsp:</p>
<p>Kindly give me the the code so that i can try in safari</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://almaer.com/blog/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working/comment-page-1#comment-39598</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 17 Sep 2008 17:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working#comment-39598</guid>
		<description>I was struggling with a similar problem with onSubmit and Safari -- worked fine in PC browsers, essentially submitting text into its own javascript environment -- but not in Safari, where it would perform its task, and then go on to reload the page, which I didn&#039;t want it to do. Also very odd results in Opera on the Mac.

I realized that I hadn&#039;t added &quot;return=false;&quot; to the javascript onSubmit:

&lt;form onSubmit=&quot;ExtraText(); return false;&quot;....

Problem solved, for me. As a friend said, &quot;different levels of prissiness in browsers.&quot;</description>
		<content:encoded><![CDATA[<p>I was struggling with a similar problem with onSubmit and Safari &#8212; worked fine in PC browsers, essentially submitting text into its own javascript environment &#8212; but not in Safari, where it would perform its task, and then go on to reload the page, which I didn&#8217;t want it to do. Also very odd results in Opera on the Mac.</p>
<p>I realized that I hadn&#8217;t added &#8220;return=false;&#8221; to the javascript onSubmit:</p>
<p>&lt;form onSubmit=&#8221;ExtraText(); return false;&#8221;&#8230;.</p>
<p>Problem solved, for me. As a friend said, &#8220;different levels of prissiness in browsers.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maris</title>
		<link>http://almaer.com/blog/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working/comment-page-1#comment-39521</link>
		<dc:creator>Maris</dc:creator>
		<pubDate>Fri, 29 Aug 2008 14:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working#comment-39521</guid>
		<description>I found one more bug according mouse events and submit button (and also button element similar).

Problem is about mouse position detection, if you attach onclick event which detects mouse position to the input=submit element, then y coordinate is incorect, nothing similar if you do this for example with div onclick event.

function mouseCoordinates(e) {
	var pos_1=pos_2=0;
	if (!e)
		var e=window.event;
	
	if (e.pageX &#124;&#124; e.pageY) 	{
		pos_1=e.pageX;
		pos_2=e.pageY;
	} else if (e.clientX &#124;&#124; e.clientY) {
		pos_1=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;
		pos_2=e.clientY+document.body.scrollTop+document.documentElement.scrollTop;
	}
	
	return [pos_1, pos_2];
}</description>
		<content:encoded><![CDATA[<p>I found one more bug according mouse events and submit button (and also button element similar).</p>
<p>Problem is about mouse position detection, if you attach onclick event which detects mouse position to the input=submit element, then y coordinate is incorect, nothing similar if you do this for example with div onclick event.</p>
<p>function mouseCoordinates(e) {<br />
	var pos_1=pos_2=0;<br />
	if (!e)<br />
		var e=window.event;</p>
<p>	if (e.pageX || e.pageY) 	{<br />
		pos_1=e.pageX;<br />
		pos_2=e.pageY;<br />
	} else if (e.clientX || e.clientY) {<br />
		pos_1=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;<br />
		pos_2=e.clientY+document.body.scrollTop+document.documentElement.scrollTop;<br />
	}</p>
<p>	return [pos_1, pos_2];<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: verda</title>
		<link>http://almaer.com/blog/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working/comment-page-1#comment-39187</link>
		<dc:creator>verda</dc:creator>
		<pubDate>Mon, 07 Jul 2008 22:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working#comment-39187</guid>
		<description>I am writing this in July 2008. Has no one figured a solution for this problem yet? I encountered it today on the latest version of Safari and need to fix it ASAP!</description>
		<content:encoded><![CDATA[<p>I am writing this in July 2008. Has no one figured a solution for this problem yet? I encountered it today on the latest version of Safari and need to fix it ASAP!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Pullara</title>
		<link>http://almaer.com/blog/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working/comment-page-1#comment-32149</link>
		<dc:creator>Sam Pullara</dc:creator>
		<pubDate>Mon, 24 Apr 2006 20:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/safari-issue-cascading-of-mouse-events-and-why-input-typesubmit-wasnt-working#comment-32149</guid>
		<description>So what&#039;s the correct behavior?  Should handled events be cascaded to underlying components?  I kinda doubt it in general, maybe this is some sort of workaround?
</description>
		<content:encoded><![CDATA[<p>So what&#8217;s the correct behavior?  Should handled events be cascaded to underlying components?  I kinda doubt it in general, maybe this is some sort of workaround?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

