<?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: Javascript Status Message Display</title>
	<atom:link href="http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/</link>
	<description></description>
	<pubDate>Wed, 17 Mar 2010 01:05:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: return-path</title>
		<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/comment-page-1/#comment-137028</link>
		<dc:creator>return-path</dc:creator>
		<pubDate>Fri, 06 Nov 2009 18:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/#comment-137028</guid>
		<description>Sorry that should be 

&#60;noscript&#62;
&#60;iframe src="/show-flash" /&#62;
&#60;/noscript&#62;</description>
		<content:encoded><![CDATA[<p>Sorry that should be </p>

<p>&lt;noscript&gt;
&lt;iframe src=&#8221;/show-flash&#8221; /&gt;
&lt;/noscript&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: return-path</title>
		<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/comment-page-1/#comment-137026</link>
		<dc:creator>return-path</dc:creator>
		<pubDate>Fri, 06 Nov 2009 18:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/#comment-137026</guid>
		<description>Why not add an accessible iframe?

eg
     
     

where /show-flash is uncached and reads the cookie through HTTP.</description>
		<content:encoded><![CDATA[<p>Why not add an accessible iframe?</p>

<p>eg</p>

<p>where /show-flash is uncached and reads the cookie through HTTP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto</title>
		<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/comment-page-1/#comment-72237</link>
		<dc:creator>Alberto</dc:creator>
		<pubDate>Sat, 17 Jan 2009 19:48:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/#comment-72237</guid>
		<description>Hi Ian, 

Just a quick FYI. I've implemented a small python module + js code for TG2 heavily inspired by this article (http://pypi.python.org/pypi/WebFlash/). If using python 2.6 it has no dependency outside the stdlib (else simplejson), JS part has no dependency at all. Thanks for the inspiration!

Alberto</description>
		<content:encoded><![CDATA[<p>Hi Ian, </p>

<p>Just a quick FYI. I&#8217;ve implemented a small python module + js code for TG2 heavily inspired by this article (http://pypi.python.org/pypi/WebFlash/). If using python 2.6 it has no dependency outside the stdlib (else simplejson), JS part has no dependency at all. Thanks for the inspiration!</p>

<p>Alberto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bodq</title>
		<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/comment-page-1/#comment-67769</link>
		<dc:creator>bodq</dc:creator>
		<pubDate>Mon, 29 Dec 2008 23:18:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/#comment-67769</guid>
		<description>Ummm, I don't get it. If you use cookies for this sort of message-passing, what happens if the user has two windows open? I can see all sorts of race conditions happening this way. And since we're talking Internet, with unpredictable packet drops and reordering, it's not so unlikely to happen (think about mobile or third-world countries).

Example:

* open /a in a new window
* send post to /b
* get cookie from /b, redirect to /c
* /a finished loading, displays the message intended for /c, clears the cookie
* /c finished loading, no message

It's not clear to me whether the onload check happens for every page or just for /c. But even in the latter case, the race is still possible.</description>
		<content:encoded><![CDATA[<p>Ummm, I don&#8217;t get it. If you use cookies for this sort of message-passing, what happens if the user has two windows open? I can see all sorts of race conditions happening this way. And since we&#8217;re talking Internet, with unpredictable packet drops and reordering, it&#8217;s not so unlikely to happen (think about mobile or third-world countries).</p>

<p>Example:</p>

<ul>
<li>open /a in a new window</li>
<li>send post to /b</li>
<li>get cookie from /b, redirect to /c</li>
<li>/a finished loading, displays the message intended for /c, clears the cookie</li>
<li>/c finished loading, no message</li>
</ul>

<p>It&#8217;s not clear to me whether the onload check happens for every page or just for /c. But even in the latter case, the race is still possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross Lawley</title>
		<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/comment-page-1/#comment-67635</link>
		<dc:creator>Ross Lawley</dc:creator>
		<pubDate>Mon, 29 Dec 2008 16:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/#comment-67635</guid>
		<description>In the past I've handled flash messages and caching by not caching the whole page, just segments / data.  The result was any cached url still contained some minimal business logic.  This approach allowed me to display dynamic user data and still have the main database heavy content cached.  The benefits of this are its accessible.

In fact the *only* data I returned from the database when I hit a cached page was the users session data.  This provided me an easy way to have dynamic content such as logged in status, flash messages and still have the benefits of a cache.</description>
		<content:encoded><![CDATA[<p>In the past I&#8217;ve handled flash messages and caching by not caching the whole page, just segments / data.  The result was any cached url still contained some minimal business logic.  This approach allowed me to display dynamic user data and still have the main database heavy content cached.  The benefits of this are its accessible.</p>

<p>In fact the <em>only</em> data I returned from the database when I hit a cached page was the users session data.  This provided me an easy way to have dynamic content such as logged in status, flash messages and still have the benefits of a cache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: whit</title>
		<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/comment-page-1/#comment-65284</link>
		<dc:creator>whit</dc:creator>
		<pubDate>Tue, 23 Dec 2008 00:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/#comment-65284</guid>
		<description>@donovan

you should check out &lt;a href="http://projects.tschaub.net/jugl" rel="nofollow"&gt;jugl&lt;/a&gt; for templating or &lt;a href="http://code.google.com/p/persevere-framework/" rel="nofollow"&gt;the javascript db written in javascript&lt;/a&gt;. ok... it's still server side.

re: about how sites should work with javascript

I think this is what separates web applications from websites (or maybe a particular kind of web application from websites in general).  

It's a bit like saying "All gui applications should have a command line interface that is as good as the gui or I'm going home". especially in the mobile realm, this simply doesn't make any sense at all anymore. 

for better or worse, people are building web application and sometimes even browser implementations for solving specific problems with almost no or severely circumscribed regard to cross browser compatibility.  For web *sites* this would be inaccessible and flippant.  

But for web applications, the audience is the market, not the browser. Javascript is being allowed to access some &lt;a href="http://phonegap.com/" rel="nofollow"&gt;seriously deep things&lt;/a&gt; that html and form encoding can't touch. combined with html5 persistence, and literally the web application is nothing but an easily updatable set of instructions.</description>
		<content:encoded><![CDATA[<p>@donovan</p>

<p>you should check out <a href="http://projects.tschaub.net/jugl" rel="nofollow">jugl</a> for templating or <a href="http://code.google.com/p/persevere-framework/" rel="nofollow">the javascript db written in javascript</a>. ok&#8230; it&#8217;s still server side.</p>

<p>re: about how sites should work with javascript</p>

<p>I think this is what separates web applications from websites (or maybe a particular kind of web application from websites in general).  </p>

<p>It&#8217;s a bit like saying &#8220;All gui applications should have a command line interface that is as good as the gui or I&#8217;m going home&#8221;. especially in the mobile realm, this simply doesn&#8217;t make any sense at all anymore. </p>

<p>for better or worse, people are building web application and sometimes even browser implementations for solving specific problems with almost no or severely circumscribed regard to cross browser compatibility.  For web <em>sites</em> this would be inaccessible and flippant.  </p>

<p>But for web applications, the audience is the market, not the browser. Javascript is being allowed to access some <a href="http://phonegap.com/" rel="nofollow">seriously deep things</a> that html and form encoding can&#8217;t touch. combined with html5 persistence, and literally the web application is nothing but an easily updatable set of instructions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bruno</title>
		<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/comment-page-1/#comment-64532</link>
		<dc:creator>bruno</dc:creator>
		<pubDate>Fri, 19 Dec 2008 08:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/#comment-64532</guid>
		<description>"""
As a reader you should never need Javascript, but as a writer (i.e., editor, commenter, interacter) I don’t see the motivation anymore.
"""

OTHO, using "whole page" caching on the writer interface seems a bit weird. There might indeed be the case of a post handler redirecting to the reader interface after a successfull modification (edit, comment, whatever), but then you obviously want to invalidate the cache to take the modification into account.

This being said, I'm not personnaly dogmatic on "requiring javascript" or not, nor on how to best use it - it really depends on the kind of application and the target audience. So I wouldn't comment on your design decision to use js for notification here - I just don't have enough context !-)</description>
		<content:encoded><![CDATA[<p>&#8220;&#8221;"
As a reader you should never need Javascript, but as a writer (i.e., editor, commenter, interacter) I don’t see the motivation anymore.
&#8220;&#8221;"</p>

<p>OTHO, using &#8220;whole page&#8221; caching on the writer interface seems a bit weird. There might indeed be the case of a post handler redirecting to the reader interface after a successfull modification (edit, comment, whatever), but then you obviously want to invalidate the cache to take the modification into account.</p>

<p>This being said, I&#8217;m not personnaly dogmatic on &#8220;requiring javascript&#8221; or not, nor on how to best use it - it really depends on the kind of application and the target audience. So I wouldn&#8217;t comment on your design decision to use js for notification here - I just don&#8217;t have enough context !-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Bicking</title>
		<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/comment-page-1/#comment-64415</link>
		<dc:creator>Ian Bicking</dc:creator>
		<pubDate>Thu, 18 Dec 2008 21:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/#comment-64415</guid>
		<description>On principle I used to feel strongly that applications shouldn't require Javascript.  Then at some time I realized it was just principle, and not real reasons, so I've become much more lax.  As a reader you should never need Javascript, but as a writer (i.e., editor, commenter, interacter) I don't see the motivation anymore.</description>
		<content:encoded><![CDATA[<p>On principle I used to feel strongly that applications shouldn&#8217;t require Javascript.  Then at some time I realized it was just principle, and not real reasons, so I&#8217;ve become much more lax.  As a reader you should never need Javascript, but as a writer (i.e., editor, commenter, interacter) I don&#8217;t see the motivation anymore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Willison</title>
		<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/comment-page-1/#comment-64375</link>
		<dc:creator>Simon Willison</dc:creator>
		<pubDate>Thu, 18 Dec 2008 09:22:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/#comment-64375</guid>
		<description>I still stick to the premise that applications should be usable without JavaScript, but usability enhanced when you ARE using JavaScript. Unfortunately I'd rate this kind of status message as something that is required to make the site usable at all. I'd love a better solution to this problem though.</description>
		<content:encoded><![CDATA[<p>I still stick to the premise that applications should be usable without JavaScript, but usability enhanced when you ARE using JavaScript. Unfortunately I&#8217;d rate this kind of status message as something that is required to make the site usable at all. I&#8217;d love a better solution to this problem though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Hedges</title>
		<link>http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/comment-page-1/#comment-64366</link>
		<dc:creator>Andrew Hedges</dc:creator>
		<pubDate>Thu, 18 Dec 2008 07:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ianbicking.org/2008/12/17/javascript-status-message-display/#comment-64366</guid>
		<description>This is one of those techniques you look at and say, "Why didn't I think of that?" I may just use it. Status messages aren't usually critical, so I think it could be justified to use this in certain environments despite the lack of accessibility for folks w/out JavaScript (which in addition to the other cases discussed above includes many mobile clients).</description>
		<content:encoded><![CDATA[<p>This is one of those techniques you look at and say, &#8220;Why didn&#8217;t I think of that?&#8221; I may just use it. Status messages aren&#8217;t usually critical, so I think it could be justified to use this in certain environments despite the lack of accessibility for folks w/out JavaScript (which in addition to the other cases discussed above includes many mobile clients).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 4.516 seconds -->
