<?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>Jonathan Weiß &#187; Events</title>
	<atom:link href="http://mysterycity.de/blog/category/events/feed" rel="self" type="application/rss+xml" />
	<link>http://mysterycity.de/blog</link>
	<description>Online Marketing</description>
	<lastBuildDate>Tue, 01 Nov 2011 09:28:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Internal browser events</title>
		<link>http://mysterycity.de/blog/internal-browser-events</link>
		<comments>http://mysterycity.de/blog/internal-browser-events#comments</comments>
		<pubDate>Thu, 15 Nov 2007 18:11:54 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Gecko]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://mysterycity.de/blog/internal-browser-events</guid>
		<description><![CDATA[Note: this is a really old article which I never finished at first. As I had some time waiting at the airport, I managed to finish the article and the demo site. ;-) Some months ago I mentioned how to prevent the browser from selecting HTML elements. While I was working on an early prototype [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note:</strong> this is a really <em>old</em> article which I never finished at first. As I had some time waiting at the airport, I managed to finish the article and the demo site. ;-)</p>
<p>Some months ago I mentioned how to <a href="http://mysterycity.de/blog/preventing-the-browser-from-selecting-text">prevent the browser from selecting HTML elements</a>. While I was working on an early prototype of a new functionality, I discovered an interesting pit fall in handling events in all browsers.<br />
When I tried to move an HTML element, suddenly it was not moved on the screen. Furthermore it seemed that no mouse event was handled to my functions. I double checked that the event handles were assigned to the specified element and also checked the functions which should be called on the mouse events.<br />
It was like something strange cut off the event handle and did not inform my functions about the mouse move. It took me a while to notice the strange new cursor which my Firefox showed. The browser showed a typically drag-and-drop cursor. By selecting the GUI element, I unnoticed selected some text which lay inside this element!<br />
When you select text in your gecko-based browser you can drag it into places like the address, a textarea or create a bookmark based on the selected content. This is a nice feature, but it is important to know this internal method has priority against JavaScript functions which are bound to events.<br />
I have created a little <a href="http://mysterycity.de/blog/sandbox/drag_drop_test.html">test page</a> on which you can have a look at this behavior.</p>
<p>So, remember: <strong>internal browser events are fired before custom events</strong>.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://mysterycity.de/blog/internal-browser-events/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preventing the browser from selecting text</title>
		<link>http://mysterycity.de/blog/preventing-the-browser-from-selecting-text</link>
		<comments>http://mysterycity.de/blog/preventing-the-browser-from-selecting-text#comments</comments>
		<pubDate>Sun, 06 May 2007 15:24:16 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Default behavior]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://mysterycity.de/blog/preventing-the-browser-from-selecting-text</guid>
		<description><![CDATA[There are many situations in which you don't want the browser to select the text (or selectable element, e.g. an image), when the user is moving the mouse holding the left mouse button. Especially during drag-and-drop actions this browser behavior will look strange and confuse the user. To prevent this action on Internet Explorer, first [...]]]></description>
			<content:encoded><![CDATA[<p>There are many situations in which you don't want the browser to select the text (or selectable element, e.g. an image), when the user is moving the mouse holding the left mouse button. Especially during drag-and-drop actions this browser behavior will look strange and confuse the user.<br />
To prevent this action on Internet Explorer, first add the proprietary event <code>onselectstart</code> to the particular element. Then assign a function which returns <code>false</code>.<br />
On Gecko bases browsers you have to use the CSS attribute <code>-moz-user-select</code>. The prefix "-moz" shows, that this attribute (as many others, e.g. <code>-moz-border-radius</code>) is a proprietary one and will not work on other browers. The expression <code>-moz-user-select:none;</code> will prevent the browser from it's normal selecting behavior.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://mysterycity.de/blog/preventing-the-browser-from-selecting-text/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

