<?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: Do not use the alert function in javascript</title>
	<atom:link href="http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=do-not-use-the-alert-function-in-javascript</link>
	<description>helping you with javascript since 2007</description>
	<lastBuildDate>Tue, 31 Jan 2012 11:22:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: picks for college football</title>
		<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/comment-page-1/#comment-1400</link>
		<dc:creator>picks for college football</dc:creator>
		<pubDate>Thu, 13 Oct 2011 12:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=40#comment-1400</guid>
		<description>&lt;strong&gt;2011...&lt;/strong&gt;

I just could not depart your web site before suggesting that I actually enjoyed the standard information a person provide for your visitors? Is going to be back often to check up on new posts...</description>
		<content:encoded><![CDATA[<p><strong>2011&#8230;</strong></p>
<p>I just could not depart your web site before suggesting that I actually enjoyed the standard information a person provide for your visitors? Is going to be back often to check up on new posts&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: software reviews</title>
		<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/comment-page-1/#comment-1362</link>
		<dc:creator>software reviews</dc:creator>
		<pubDate>Thu, 13 Oct 2011 00:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=40#comment-1362</guid>
		<description>&lt;strong&gt;2011...&lt;/strong&gt;

I don’t even know how I ended up here, but I thought this post was great. I don&#039;t know who you are but definitely you are going to a famous blogger if you aren&#039;t already ;) Cheers!...</description>
		<content:encoded><![CDATA[<p><strong>2011&#8230;</strong></p>
<p>I don’t even know how I ended up here, but I thought this post was great. I don&#8217;t know who you are but definitely you are going to a famous blogger if you aren&#8217;t already <img src='http://www.javascriptkata.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Cheers!&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dYcbbgx</title>
		<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/comment-page-1/#comment-1342</link>
		<dc:creator>dYcbbgx</dc:creator>
		<pubDate>Wed, 12 Oct 2011 02:44:30 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=40#comment-1342</guid>
		<description>&lt;strong&gt;2011...&lt;/strong&gt;

Thank you for sharing superb informations. Your site is so cool. I&#039;m impressed by the details that you have on this site. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for extra articles. You, my friend, ROC...</description>
		<content:encoded><![CDATA[<p><strong>2011&#8230;</strong></p>
<p>Thank you for sharing superb informations. Your site is so cool. I&#8217;m impressed by the details that you have on this site. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for extra articles. You, my friend, ROC&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dYcxcgcvfgg</title>
		<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/comment-page-1/#comment-1305</link>
		<dc:creator>dYcxcgcvfgg</dc:creator>
		<pubDate>Sun, 09 Oct 2011 00:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=40#comment-1305</guid>
		<description>&lt;strong&gt;2011...&lt;/strong&gt;

Great write-up, I am normal visitor of one’s website, maintain up the excellent operate, and It&#039;s going to be a regular visitor for a lengthy time....</description>
		<content:encoded><![CDATA[<p><strong>2011&#8230;</strong></p>
<p>Great write-up, I am normal visitor of one’s website, maintain up the excellent operate, and It&#8217;s going to be a regular visitor for a lengthy time&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Batty13</title>
		<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/comment-page-1/#comment-1219</link>
		<dc:creator>Batty13</dc:creator>
		<pubDate>Mon, 25 Jul 2011 17:16:03 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=40#comment-1219</guid>
		<description>You can do the same thing with just html and php. e.g.  form submit path same page with variable. for example;  index.php?confirm=yes . Then in the page have a php check, get &quot;confirm&quot; if yes echo =are you sure you want to do this (which can be presented in the are or location of that box, section, div. etc. Then provide a secondary link or button or form that is echo&#039;d on the page there that says something like yes or confirm or okay, or sure. Then run the  actual script to remove it. If you want to keep it all client side you can do the same thing with a little bit of dhtml instead using things like get element by id. &lt;br&gt;</description>
		<content:encoded><![CDATA[<p>You can do the same thing with just html and php. e.g.  form submit path same page with variable. for example;  index.php?confirm=yes . Then in the page have a php check, get &#8220;confirm&#8221; if yes echo =are you sure you want to do this (which can be presented in the are or location of that box, section, div. etc. Then provide a secondary link or button or form that is echo&#39;d on the page there that says something like yes or confirm or okay, or sure. Then run the  actual script to remove it. If you want to keep it all client side you can do the same thing with a little bit of dhtml instead using things like get element by id. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Dev</title>
		<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/comment-page-1/#comment-851</link>
		<dc:creator>Joe Dev</dc:creator>
		<pubDate>Thu, 03 Dec 2009 21:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=40#comment-851</guid>
		<description>No one can answer the key point that many developers have. How do you stop execution of javascript until the user clicks something? For example you wait for them to read the alert message then navigate them away to another page. Every replacement solution I have found cannot recreate this, it displays the pseudo alert for a second then navigates away without requiring the user to hit ok first.</description>
		<content:encoded><![CDATA[<p>No one can answer the key point that many developers have. How do you stop execution of javascript until the user clicks something? For example you wait for them to read the alert message then navigate them away to another page. Every replacement solution I have found cannot recreate this, it displays the pseudo alert for a second then navigates away without requiring the user to hit ok first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/comment-page-1/#comment-765</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Tue, 30 Jun 2009 19:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=40#comment-765</guid>
		<description>A few years ago, I developed a server side engine to display standard forms on a web page. everything was driven by a data dictionary and each element has an empty DIV immediately below it with a known name, typically &#039;MSGelementname&#039; when an error  occurs, I use document.getElementById(&#039;MSGelementname&#039;).innerHTML=&#039;error msg&#039;. This inserts a message immediately after the element, drawing the user&#039;s attention directly to the problem. Using the same technique, I also insert a message near the submit button alerting the user to he error(s). This allowed me to change all of the form&#039;s alerts to &#039;document.getElementById(&quot;MSGelementname&quot;).innerHTML=errorMsg;&#039;.

In the end, it added one div per element to the HTML, one div near the submit button, and only a few lines of JavaScript.  No more alerts, just a friendly interface. It does require more work from the programmer, but that&#039;s what we&#039;re here for.</description>
		<content:encoded><![CDATA[<p>A few years ago, I developed a server side engine to display standard forms on a web page. everything was driven by a data dictionary and each element has an empty DIV immediately below it with a known name, typically &#8216;MSGelementname&#8217; when an error  occurs, I use document.getElementById(&#8216;MSGelementname&#8217;).innerHTML=&#8217;error msg&#8217;. This inserts a message immediately after the element, drawing the user&#8217;s attention directly to the problem. Using the same technique, I also insert a message near the submit button alerting the user to he error(s). This allowed me to change all of the form&#8217;s alerts to &#8216;document.getElementById(&#8220;MSGelementname&#8221;).innerHTML=errorMsg;&#8217;.</p>
<p>In the end, it added one div per element to the HTML, one div near the submit button, and only a few lines of JavaScript.  No more alerts, just a friendly interface. It does require more work from the programmer, but that&#8217;s what we&#8217;re here for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lupus Michaelis</title>
		<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/comment-page-1/#comment-549</link>
		<dc:creator>Lupus Michaelis</dc:creator>
		<pubDate>Fri, 18 Jul 2008 14:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=40#comment-549</guid>
		<description>You&#039;re hard against the message boxes. They can be useful, in some cases. In a web application, it can be needed. But in web site, I agree that message boxes are as annoying as popups.

So, FYI, you can read and write through javascript embeded in a web browser. In Gecko, you have to ask user for that privilege, and in MSIE you just use the right ActiveX (so MSIE must ask the user for... at least).

(Sorry for my english, I&#039;m french)</description>
		<content:encoded><![CDATA[<p>You&#8217;re hard against the message boxes. They can be useful, in some cases. In a web application, it can be needed. But in web site, I agree that message boxes are as annoying as popups.</p>
<p>So, FYI, you can read and write through javascript embeded in a web browser. In Gecko, you have to ask user for that privilege, and in MSIE you just use the right ActiveX (so MSIE must ask the user for&#8230; at least).</p>
<p>(Sorry for my english, I&#8217;m french)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whipping Teach</title>
		<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/comment-page-1/#comment-405</link>
		<dc:creator>Whipping Teach</dc:creator>
		<pubDate>Tue, 15 Jan 2008 04:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=40#comment-405</guid>
		<description>I always love the alert box cuz it snaps the reader&#039;s attention.

Very useful and annoying if you was going to just make an surprise. ^^

Thanks for the light box code though!!!! It does work subtley...</description>
		<content:encoded><![CDATA[<p>I always love the alert box cuz it snaps the reader&#8217;s attention.</p>
<p>Very useful and annoying if you was going to just make an surprise. ^^</p>
<p>Thanks for the light box code though!!!! It does work subtley&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daeghran</title>
		<link>http://www.javascriptkata.com/2007/05/16/do-not-use-the-alert-function-in-javascript/comment-page-1/#comment-246</link>
		<dc:creator>Daeghran</dc:creator>
		<pubDate>Wed, 04 Jul 2007 09:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=40#comment-246</guid>
		<description>Interesting discussion.
But I have a question...

What if you want to stop execution/parsing of the current page by the browser until the user clicks &quot;OK&quot;?  I wish there was another way but I can&#039;t think of any way to do his except by using the alert function.

Is there any other way of doing this?</description>
		<content:encoded><![CDATA[<p>Interesting discussion.<br />
But I have a question&#8230;</p>
<p>What if you want to stop execution/parsing of the current page by the browser until the user clicks &#8220;OK&#8221;?  I wish there was another way but I can&#8217;t think of any way to do his except by using the alert function.</p>
<p>Is there any other way of doing this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

