<?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"
	>

<channel>
	<title>Wojciech Bednarski &#187; in English</title>
	<atom:link href="http://wojciechbednarski.com/category/in-english/feed/" rel="self" type="application/rss+xml" />
	<link>http://wojciechbednarski.com</link>
	<description>my piece of the Web</description>
	<pubDate>Thu, 31 Jan 2008 21:24:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>@media 2008</title>
		<link>http://wojciechbednarski.com/web-standards/media-2008</link>
		<comments>http://wojciechbednarski.com/web-standards/media-2008#comments</comments>
		<pubDate>Thu, 31 Jan 2008 20:10:36 +0000</pubDate>
		<dc:creator>Wojciech Bednarski</dc:creator>
		
		<category><![CDATA[@media 2008]]></category>

		<category><![CDATA[Web standards]]></category>

		<category><![CDATA[events]]></category>

		<category><![CDATA[in English]]></category>

		<guid isPermaLink="false">http://wojciechbednarski.com/web-standards/media-2008</guid>
		<description><![CDATA[If you are thinking to attend @media 2008 conference you can register until 21st March, but only today the price is 10% less, so go ahead!
@media 2008
]]></description>
			<content:encoded><![CDATA[<p>If you are thinking to attend <a href='http://www.vivabit.com/atmedia2008/''>@media 2008</a> conference you can register until 21st March, but only today the price is 10% less, so go ahead!</p>
<p><a href='http://www.vivabit.com/atmedia2008/''>@media 2008</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wojciechbednarski.com/web-standards/media-2008/feed</wfw:commentRss>
		</item>
		<item>
		<title>The best way to hide content by JavaScript</title>
		<link>http://wojciechbednarski.com/web-accessibility/the-best-way-to-hide-content-by-javascript</link>
		<comments>http://wojciechbednarski.com/web-accessibility/the-best-way-to-hide-content-by-javascript#comments</comments>
		<pubDate>Mon, 17 Dec 2007 01:05:05 +0000</pubDate>
		<dc:creator>Wojciech Bednarski</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Web accessibility]]></category>

		<category><![CDATA[Web standards]]></category>

		<category><![CDATA[Web usability]]></category>

		<category><![CDATA[articles]]></category>

		<category><![CDATA[in English]]></category>

		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://wojciechbednarski.com/web-accessibility/the-best-way-to-hide-content-by-javascript</guid>
		<description><![CDATA[In my daily work I take care of front-end part of quite big factory portal. In small websites I have never seen flickering problem those parts of content which are hiding by JavaScript while page is loading. On enterprise is different. Some pages are incredible big, their parts load from many different sources and I [...]]]></description>
			<content:encoded><![CDATA[<p>In my daily work I take care of front-end part of quite big factory portal. In small websites I have never seen flickering problem those parts of content which are hiding by JavaScript while page is loading. On enterprise is different. Some pages are incredible big, their parts load from many different sources and I see which parts of content are hiding one by one.</p>
<p>I tried to find the best solution, on the Google there isn&#8217;t a lot of information about good practice in JavaScript, however I think that I know how to do this best. I show you few solutions; unaccessible, bugged and accessible solutions.</p>
<p><span id="more-148"></span></p>
<h3>The Goal</h3>
<p>On the page div #book must be visible with JavaScript turned off and not hiding with flickering (blinking) when JavaScript is turned on. After clicked on the headline #book must be showed by JavaScript.</p>
<p>The page without any scripts and hiding CSS - <a href='http://wojciechbednarski.com/wp-content/uploads/2007/12/example0.html'>example 0</a>.</p>
<h3>Really bad, however not flickering</h3>
<p>The part of the page, that should be showed by JavaScript is hiding by CSS.</p>
<p><strong>CSS code:</strong></p>
<pre>#book {
 display: none
}
</pre>
<p>When JavaScript is on we can show hidden part by mouse click.</p>
<p><strong>JavaScript code:</strong></p>
<pre>$(function() {
$('h2').click(function() {
 $('#book').show();
 });
});
</pre>
<p>When JavaScript is off, the #book is never visible. That solution is not acceptable. <a href='http://wojciechbednarski.com/wp-content/uploads/2007/12/example1.html'>Example 1</a>.</p>
<h3>Accessible but flickering</h3>
<p>Second solution is really simple and accessible, but during hiding parts of content then blinking is appreciable.</p>
<p>Just add hiding class by JavaScript, that you have guaranty when JavaScript is off anyone can see content.</p>
<p><strong>JavaScript code:</strong></p>
<pre>
$(function() {
 $('#book').addClass('javascript);
  $('h2').click(function() {
   $('#book').show();
  });
});
</pre>
<p><strong>CSS code:</strong></p>
<pre>
.javascript {
 display:none
}
</pre>
<p>View <a href='http://wojciechbednarski.com/wp-content/uploads/2007/12/example2.html'>example 2</a>.</p>
<h3>Accessible but document.write</h3>
<p>Yes, that example is accessible but&#8230; Always is but. The problem is in <code>document.write</code>. I think you know what&#8217;s going on with it. Maybe in this case we can use <code>document.write</code>? I&#8217;m really confused at this point. Unfortunately, when we write something with <code>document.write</code> it will not work when we serve it as application/xhtml+xml.</p>
<p><strong>JavaScript code:</strong></p>
<pre>
$(function() {
 $('h2').click(function() {
  $('#book').show();
 });
});

document.write('&lt;style type=\"text/css\" media=\"screen\">
 #book{display:none}
&lt;/style>');
</pre>
<p>View <a href='http://wojciechbednarski.com/wp-content/uploads/2007/12/example3.html'>example 3</a>.</p>
<h3>Accessible, better than previous, but&#8230;</h3>
<p>I hate buts! That example is accessible but to valid this page with any version of HTML or XHTML you have to extend DTD, really.</p>
<p><strong>JavaScript code:</strong></p>
<pre>
$(function() {
 $('h2').click(function() {
  $('#book').show();
 });
});
</pre>
<p><strong>CSS code:</strong></p>
<pre>
#book {
 display:none
}
</pre>
<p><strong>CSS code:</strong></p>
<pre>
&lt;noscript>
 &lt;style type="text/css" media="screen">
 #book {
  display:block
 }
&lt;/style>
&lt;/noscript>
</pre>
<p>The problem of that case: We need to put style inside the noscript tag to show the content when JavaScript is off. We cannot put style tag inside body and we can put noscript tag only inside body tag, disaster&#8230;</p>
<p>View <a href='http://wojciechbednarski.com/wp-content/uploads/2007/12/example4.html'>example 4</a>.</p>
<h3>The winner!</h3>
<p><code>documentElement.className</code> If it is a holy grail of my search? It looks like.</p>
<p>I did not observe any delay during hiding content using this method. Even of a huge page.</p>
<p>How it works? We added class to html tag by JavaScript. Next, each element that should be hidden when JavaScript is turned on, preceded by the class and add to it <code>display:none</code> or something like this. That&#8217;s all.</p>
<p><strong>JavaScript code:</strong></p>
<pre>
document.documentElement.className += " js";

$(function() {
 $('h2').click(function() {
  $('#book').show();
 });
});
</pre>
<p><strong>CSS code:</strong></p>
<pre>
.js #book {
 display:none;
}
</pre>
<p>View <a href='http://wojciechbednarski.com/wp-content/uploads/2007/12/example5.html'>example 5</a>.</p>
<p>To test these examples you can reload it few times to see flickering effect. To show the hidden content, click at headline <q>Wojciech Bednarski&#8217;s favorite book</q>.</p>
]]></content:encoded>
			<wfw:commentRss>http://wojciechbednarski.com/web-accessibility/the-best-way-to-hide-content-by-javascript/feed</wfw:commentRss>
		</item>
		<item>
		<title>Safari 3.0 now in Tiger</title>
		<link>http://wojciechbednarski.com/css/safari-30-now-in-tiger</link>
		<comments>http://wojciechbednarski.com/css/safari-30-now-in-tiger#comments</comments>
		<pubDate>Thu, 15 Nov 2007 22:27:59 +0000</pubDate>
		<dc:creator>Wojciech Bednarski</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Safari]]></category>

		<category><![CDATA[in English]]></category>

		<guid isPermaLink="false">http://wojciechbednarski.com/css/safari-30-now-in-tiger</guid>
		<description><![CDATA[Latest Tiger&#8217;s update (10.4.11) become with stable version of Safari 3.0.
About new cool features, like CSS animation, SVG, Styleable Form Controls and so on, you can read on the Safari&#8217;s Blog - Ten New Things in WebKit 3
For testing web sites under Safari 2.0, you can keep Safari.app before update to 10.4.11 in different directory [...]]]></description>
			<content:encoded><![CDATA[<p>Latest Tiger&#8217;s update (<a href="http://docs.info.apple.com/article.html?artnum=306297">10.4.11</a>) become with stable version of Safari 3.0.</p>
<p>About new cool features, like CSS animation, SVG, Styleable Form Controls and so on, you can read on the Safari&#8217;s Blog - <a href="http://webkit.org/blog/122/webkit-3-10-new-things/">Ten New Things in WebKit 3</a></p>
<p>For testing web sites under Safari 2.0, you can keep Safari.app before update to 10.4.11 in different directory or download any version <a href="http://nightly.webkit.org/">from repository</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://wojciechbednarski.com/css/safari-30-now-in-tiger/feed</wfw:commentRss>
		</item>
		<item>
		<title>Gates, Jobs and&#8230; Commodore 64</title>
		<link>http://wojciechbednarski.com/funny/gates-jobs-and-commodore-64</link>
		<comments>http://wojciechbednarski.com/funny/gates-jobs-and-commodore-64#comments</comments>
		<pubDate>Mon, 02 Jul 2007 22:55:45 +0000</pubDate>
		<dc:creator>Wojciech Bednarski</dc:creator>
		
		<category><![CDATA[Apple]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[YouTube]]></category>

		<category><![CDATA[funny]]></category>

		<category><![CDATA[in English]]></category>

		<guid isPermaLink="false">http://wojciechbednarski.com/funny/gates-jobs-and-commodore-64</guid>
		<description><![CDATA[Watch the Gates vs. Jobs on YouTube
]]></description>
			<content:encoded><![CDATA[<p>Watch the <a href="http://www.youtube.com/watch?v=qHO8l-Bd1O4">Gates vs. Jobs</a> on YouTube</p>
]]></content:encoded>
			<wfw:commentRss>http://wojciechbednarski.com/funny/gates-jobs-and-commodore-64/feed</wfw:commentRss>
		</item>
		<item>
		<title>Say NO to OOXML</title>
		<link>http://wojciechbednarski.com/patents/say-no-to-ooxml</link>
		<comments>http://wojciechbednarski.com/patents/say-no-to-ooxml#comments</comments>
		<pubDate>Thu, 28 Jun 2007 17:21:08 +0000</pubDate>
		<dc:creator>Wojciech Bednarski</dc:creator>
		
		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[in English]]></category>

		<category><![CDATA[patents]]></category>

		<guid isPermaLink="false">http://wojciechbednarski.com/microsoft/say-no-to-ooxml</guid>
		<description><![CDATA[
Say NO to the Microsoft Office format as an ISO standard (Français, German).
The home page of &#60;NO&#62;OOXML project.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.noooxml.org/petition"><img src="http://wojciechbednarski.com/wp-content/uploads/2007/06/banner1.png" alt="Say NO to the Microsoft Office format as an ISO standard" /></a></p>
<p>Say <a href="http://www.noooxml.org/petition">NO to the Microsoft Office format</a> as an ISO standard (<a href="http://www.noooxml.org/petition-fr" title="Say NO to the Microsoft Office format as an ISO standard in Français">Français</a>, <a href="http://www.noooxml.org/petition-de" title="Say NO to the Microsoft Office format as an ISO standard in German">German</a>).</p>
<p>The home page of <a href="http://www.noooxml.org/">&lt;NO&gt;OOXML</a> project.</p>
]]></content:encoded>
			<wfw:commentRss>http://wojciechbednarski.com/patents/say-no-to-ooxml/feed</wfw:commentRss>
		</item>
		<item>
		<title>Accessibility Statement on huge portals</title>
		<link>http://wojciechbednarski.com/web-accessibility/accessibility-statement-on-huge-portals</link>
		<comments>http://wojciechbednarski.com/web-accessibility/accessibility-statement-on-huge-portals#comments</comments>
		<pubDate>Tue, 19 Jun 2007 21:15:59 +0000</pubDate>
		<dc:creator>Wojciech Bednarski</dc:creator>
		
		<category><![CDATA[Web accessibility]]></category>

		<category><![CDATA[in English]]></category>

		<guid isPermaLink="false">http://wojciechbednarski.com/in-english/accessibility-statement-on-huge-portals</guid>
		<description><![CDATA[I have never seen any huge portals, corporations pages, which have clean HTML and full CSS layout. In another words which was accessible. But, most of the portals have a page called: accessibility statement or something like this, where we may find information about font resizing, inverting colors on the page, and so on.


I found [...]]]></description>
			<content:encoded><![CDATA[<p>I have never seen any huge portals, corporations pages, which have clean HTML and full CSS layout. In another words which was accessible. But, most of the portals have a page called: <q>accessibility statement</q> or something like this, where we may find information about font resizing, inverting colors on the page, and so on.</p>
<p><span id="more-132"></span><br />
<img src='http://wojciechbednarski.com/wp-content/uploads/2007/06/bbc-my_web_my_way-accessibility_page.png' alt='screenshot of accessibility statement on BBC.co.uk page' /></p>
<p>I found <a href="http://www.bbc.co.uk/accessibility/">accessibility statement on bbc.co.uk</a> page. I think it is good example, what such page should contained. I talk about content only, code looks like&#8230;</p>
<p>So, what do you think about it?</p>
]]></content:encoded>
			<wfw:commentRss>http://wojciechbednarski.com/web-accessibility/accessibility-statement-on-huge-portals/feed</wfw:commentRss>
		</item>
		<item>
		<title>Double content</title>
		<link>http://wojciechbednarski.com/web-accessibility/double-content</link>
		<comments>http://wojciechbednarski.com/web-accessibility/double-content#comments</comments>
		<pubDate>Fri, 01 Jun 2007 06:50:18 +0000</pubDate>
		<dc:creator>Wojciech Bednarski</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Web accessibility]]></category>

		<category><![CDATA[Web usability]]></category>

		<category><![CDATA[in English]]></category>

		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://wojciechbednarski.com/user-interface/double-content</guid>
		<description><![CDATA[I have got a dilemma, because I have to write code (XHTML, CSS and so on) based on design from an agency. Design looks nicely, but usability of it is not so good.

Design looks something like this:

Related articles (blue one on image) are exactly the same as related article again from right on the article [...]]]></description>
			<content:encoded><![CDATA[<p>I have got a dilemma, because I have to write code (XHTML, CSS and so on) based on design from an agency. Design looks nicely, but usability of it is not so good.</p>
<p><span id="more-128"></span></p>
<p>Design looks something like this:</p>
<p><img src='http://wojciechbednarski.com/wp-content/uploads/2007/05/example_of_bad_design.gif' alt='example to article' /></p>
<p><strong>Related articles</strong> (blue one on image) are exactly the same as <strong>related article again</strong> from right on the article content. Similarly <strong>useful external links</strong> under the article content are repeated on the right of article content.</p>
<p>So, What is the best way to do this? I see two solutions:</p>
<ol>
<li>Generate twice each of the section in XHTML code (by back-end code)</li>
<li>Generate only once time section which will be repeat and copy them via JavaScript</li>
</ol>
<p>Both solutions are not so good, but if we have got bad design and we don&#8217;t have any possibilities to change it (for example client is to decide on), we must choose solutions.</p>
<p>Why the first is bad?</p>
<ol>
<li>Double content in XHTML code</li>
<li>Accessibility (obstruct browsing from mobile, screen reader has to read the same content again)</li>
<li>SEO (to much the same words in code or something other reason to worse SEO)</li>
<li>We don&#8217;t have possibilities to add any semantic relations between section in code (XHTML is restricted in this case)</li>
</ol>
<p>Why the second is bad?</p>
<ol>
<li>Client has to rendering scripts (performance)</li>
</ol>
<p>I think, the second is better than the first. If you have any ideas leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://wojciechbednarski.com/web-accessibility/double-content/feed</wfw:commentRss>
		</item>
		<item>
		<title>Why we should say NO to Vista</title>
		<link>http://wojciechbednarski.com/gnulinux/why-we-should-say-no-to-windows-vista</link>
		<comments>http://wojciechbednarski.com/gnulinux/why-we-should-say-no-to-windows-vista#comments</comments>
		<pubDate>Thu, 24 May 2007 21:58:59 +0000</pubDate>
		<dc:creator>Wojciech Bednarski</dc:creator>
		
		<category><![CDATA[GNU/Linux]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[Vista]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[in English]]></category>

		<guid isPermaLink="false">http://wojciechbednarski.com/gnulinux/why-we-should-say-no-to-windows-vista</guid>
		<description><![CDATA[At the end of last year Free Software Foundation lunched Bad Vista project.
Quick Important Fact About Windows Vista

Vista is designed to restrict what you can do (DRM)
Even when you legally buy Vista, you don&#8217;t own it
If your copy of Vista came with the purchase of a new computer, that copy of Vista may only be [...]]]></description>
			<content:encoded><![CDATA[<p>At the end of last year Free Software Foundation lunched <a href="http://badvista.fsf.org/">Bad Vista project</a>.</p>
<h3>Quick Important Fact About Windows Vista</h3>
<ol>
<li>Vista is designed to restrict what you can do (<abbr title="Digital Restrictions Management">DRM</abbr>)</li>
<li>Even when you legally buy Vista, you don&#8217;t own it</li>
<li>If your copy of Vista came with the purchase of a new computer, that copy of Vista may only be legally used on that machine, forever</li>
<li>If you bought Vista in a retail store and installed it on a machine you have already owned, you have to completely delete it on that machine before you can install it on another machine</li>
<li>You give Microsoft the right, through programs like Windows Defender, to delete programs from your system that it decides are spyware</li>
</ol>
<p>Project target is to inform as many people as possible about Windows Vista restrictions for freedoms of computer users.</p>
<p>So, I have made a leaflet which you may download, print and stick in some visible place. For example, dashboard at your school, work or so on&#8230;</p>
<p><img src='http://wojciechbednarski.com/wp-content/uploads/2007/05/bad-vista.gif' alt='Bad Vista logo' /></p>
<p>Download the <a href='http://wojciechbednarski.com/wp-content/uploads/2007/05/badvista.pdf' title='badvista.pdf'>bill Bad Vista</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://wojciechbednarski.com/gnulinux/why-we-should-say-no-to-windows-vista/feed</wfw:commentRss>
		</item>
		<item>
		<title>This Design Is Not a Template!</title>
		<link>http://wojciechbednarski.com/site/this-design-is-not-a-template</link>
		<comments>http://wojciechbednarski.com/site/this-design-is-not-a-template#comments</comments>
		<pubDate>Wed, 27 Sep 2006 16:32:01 +0000</pubDate>
		<dc:creator>Wojciech Bednarski</dc:creator>
		
		<category><![CDATA[Web design]]></category>

		<category><![CDATA[in English]]></category>

		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://wojciechbednarski.com/site/this-design-is-not-a-template</guid>
		<description><![CDATA[Sometimes I get mails where people ask me something like that: Where can I download this beautiful theme for WordPress?. And today I found copy of my design in public place.
So&#8230; My blog is powered by WordPress, but the design isn&#8217;t WordPress theme.
This design is my intellectual property. Unique combination of images, colors, sizes, typography [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I get mails where people ask me something like that: <q>Where can I download this beautiful theme for WordPress?</q>. And today I found copy of my design in <a href="http://kopervik-online.no/ny/" rel="external nofollow">public place</a>.</p>
<p>So&#8230; My blog is powered by WordPress, but the design isn&#8217;t WordPress theme.</p>
<p>This design is my intellectual property. Unique combination of images, colors, sizes, typography and positioning is copyright by me - Wojciech Bednarski and may not be reproduced.</p>
<p>However you may study the <abbr xml:lang="en" title="Cascading Style Sheets">CSS</abbr> and use techniques for learn and use some part of my <abbr>CSS</abbr> files in your projects, but not like a part of design.</p>
<p>All graphics are copyright by Wojciech Bednarski and you may not reproduce it elsewhere without my written permission.</p>
<p>If you steal my design, you can be sure I will find you.</p>
]]></content:encoded>
			<wfw:commentRss>http://wojciechbednarski.com/site/this-design-is-not-a-template/feed</wfw:commentRss>
		</item>
		<item>
		<title>css Zen Garden - Our House</title>
		<link>http://wojciechbednarski.com/css/css-zen-garden-our-house</link>
		<comments>http://wojciechbednarski.com/css/css-zen-garden-our-house#comments</comments>
		<pubDate>Mon, 04 Sep 2006 23:58:02 +0000</pubDate>
		<dc:creator>Wojciech Bednarski</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Web design]]></category>

		<category><![CDATA[css Zen Garden]]></category>

		<category><![CDATA[in English]]></category>

		<guid isPermaLink="false">http://wojciechbednarski.com/css/css-zen-garden-our-house</guid>
		<description><![CDATA[
Yeah. Finally I&#8217;ve made my own CSS design for Zen Garden and I&#8217;ve submitted it. Unfortunately current processing work submitted is between 1 November 2005 and 1 December 2005. Apparently Dave has many other projects to watch. It takes a few months when my project will be accepted and published.
At present you may watch my [...]]]></description>
			<content:encoded><![CDATA[<div lang="en" xml:lang="en">
<p>Yeah. Finally I&#8217;ve made my own CSS design for <a href="http://www.csszengarden.com">Zen Garden</a> and I&#8217;ve submitted it. Unfortunately current processing work submitted is between 1 November 2005 and 1 December 2005. Apparently <a href="http://www.mezzoblue.com/">Dave</a> has many other projects to watch. It takes a few months when my project will be accepted and published.</p>
<p>At present you may <a href="http://www.csszengarden.com/?cssfile=http://lab.wojciechbednarski.com/zen/ourhouse/sample.css">watch my design here</a>.</p>
<p>I called this design Our House, because everything getting started from the picture named that same. Thanks <strong>Arnie Mateo</strong> for great picture and inspiration.</p>
</div>
<p><span id="more-95"></span></p>
<div lang="en" xml:lang="en">
<p>My design looks good in many browsers like Opera, Firefox and other Gecko based, however only Safari, Konqueror, Shiira, SunriseBrowser and other based on WebCore or KHTML engine support <code>text-shadow</code> property.</p>
<p>Of course Internet Explorers (5, 5.5 and 6.0) display design property, but doesn&#8217;t support any extra CSS techniques like <code>selector:pseudo-class selector</code> so &#8230;</p>
<p>What you think about my design? Any opinion are welcome.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://wojciechbednarski.com/css/css-zen-garden-our-house/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
