<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>JavaScript &amp; CSS</title>
        <link>http://geekswithblogs.net/TimH/category/3724.aspx</link>
        <description>Client-side browser technologies</description>
        <language>en-NZ</language>
        <copyright>Tim Huffam</copyright>
        <managingEditor>timhuffam@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>VS2008 Javascript debugging error: The breakpoint will not currently be hit. No symbols have been loaded for this document</title>
            <link>http://geekswithblogs.net/TimH/archive/2008/08/18/vs2008-javascript-debugging-error-the-breakpoint-will-not-currently-be.aspx</link>
            <description>&lt;p&gt;When trying to debug javascript using Visual Studio 2008 there a couple of things you need to do first - otherwise it (debugging) will not work and you'll get the following error when you hover over breakpoint in your javascript:&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial" color="#0000ff"&gt;The breakpoint will not currently be hit. No symbols have been loaded for this document.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Note that this is only for debugging using IE (6) - not sure about other browsers/versions.&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;Within IE go into Tools - Internet Options - Advanced tab and make sure the 'Disable Script Debugging' is unchecked.&lt;/li&gt;
    &lt;li&gt;Make sure you have a breakpoint in your javascript.&lt;/li&gt;
    &lt;li&gt;Start debugging your web app in VS.&lt;/li&gt;
    &lt;li&gt;Within VS select menu item Debug - 'Attach to Process...'&lt;/li&gt;
    &lt;li&gt;On the Attach to Process dialog, select the row which has explorer.exe for your app (the Title column will have you page title on it), then click Attach.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That's it - when your breakpoint is reached the VS debugger will be triggered.&lt;/p&gt;
&lt;p&gt;HTH&lt;br /&gt;
Tim&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124502"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=124502" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/124502.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2008/08/18/vs2008-javascript-debugging-error-the-breakpoint-will-not-currently-be.aspx</guid>
            <pubDate>Sun, 17 Aug 2008 22:04:24 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/124502.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2008/08/18/vs2008-javascript-debugging-error-the-breakpoint-will-not-currently-be.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/124502.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/124502.aspx</trackback:ping>
        </item>
        <item>
            <title>Centering div tags using CSS</title>
            <link>http://geekswithblogs.net/TimH/archive/2007/05/15/112515.aspx</link>
            <description>&lt;p&gt;As text-align doesn't work I use a simple work around:&lt;/p&gt;
&lt;p&gt;.mydiv{&lt;br /&gt;
  width: 100%;&lt;br /&gt;
  left: 50%;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;It's not perfect - but very simple and easy to understand - and you can modify it to suit.  &lt;/p&gt;
&lt;p&gt;Seems to work ok in IE 6 &amp;amp; FF 2.0.&lt;/p&gt;
&lt;p&gt;Here's another method (&lt;font face="Arial"&gt;&lt;a href="http://www.andybudd.com/archives/2004/02/css_crib_sheet_3_centering_a_div/index.php)"&gt;http://www.andybudd.com/archives/2004/02/css_crib_sheet_3_centering_a_div/index.php)&lt;/a&gt; - but I found it not obvious/simple enough (expecially for others who may have to maintain the css down the track - KISS)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;HTH&lt;br /&gt;
Tim&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=112515"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=112515" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/112515.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2007/05/15/112515.aspx</guid>
            <pubDate>Tue, 15 May 2007 05:11:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/112515.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2007/05/15/112515.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/112515.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/112515.aspx</trackback:ping>
        </item>
        <item>
            <title>Printing nicely from the web: Printing web pages or alternate documents</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/10/31/95605.aspx</link>
            <description>&lt;P&gt;Many web pages are not designed with any consideration for printing - this is one of those annoying things that one comes across more often than not.&lt;/P&gt;
&lt;P&gt;Here are a couple of simple ways to make sure your pages are printed&amp;nbsp;in a formatted way:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Use a specific print style sheet.&amp;nbsp;&lt;/STRONG&gt; &lt;BR&gt;&lt;BR&gt;This is the most common approach used on the web.&amp;nbsp; The idea being you create another stylesheet&amp;nbsp;that is specifically for formatting your&amp;nbsp;web&amp;nbsp;page(s) for printer output.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;There are&amp;nbsp;many examples on the web of how to do&amp;nbsp;CSS so I won't go into that.&amp;nbsp; However what you may need to know, is how to specify an printer specific stylesheet within your&amp;nbsp;page.&lt;BR&gt;&lt;BR&gt;A normal stylesheet&amp;nbsp;is added like this:&lt;BR&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;&amp;lt;link href="default.css" type="text/css" rel="stylesheet"&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;where as a print specific stylesheet is added like this:&lt;BR&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;&amp;lt;link href="print.css" type="text/css" rel="stylesheet" media="print"&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;By adding this to your web page, whenever the user click on the Print button the page will be formated using the print stylesheet.&lt;BR&gt;&lt;BR&gt;
&lt;LI&gt;&lt;STRONG&gt;Use an alternative document.&lt;/STRONG&gt;&lt;BR&gt;&lt;BR&gt;This is a less known method, which can be very effective.&amp;nbsp; Basically it tells your browser to use an alternative document whenever the user clicks on Print.&amp;nbsp; This alternative document can be any web resource eg another web page or something like a word document, spreadsheet&amp;nbsp;or pdf document.&amp;nbsp; What's good about this that things like word or pdf documents are very quick and easy to create and format - so you know what it's going to look like printed right away (I find it way easier to create and format a word doc than fiddling with stylesheets).&lt;BR&gt;&lt;BR&gt;This is how to specify the alternate print document:&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;&amp;lt;link href="worddoc.doc" type="application/msword" rel="alternate" media="print"&amp;gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;Note that you should specify the correct content type. &lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=95605"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=95605" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/95605.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/10/31/95605.aspx</guid>
            <pubDate>Mon, 30 Oct 2006 23:30:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/95605.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/10/31/95605.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/95605.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/95605.aspx</trackback:ping>
        </item>
        <item>
            <title>Access is denied - Javascript error when attempting to load xml from an external site.</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/05/17/78673.aspx</link>
            <description>&lt;P&gt;As yet I don't have the answer to this problem - so any suggestions would be very much appreciated!&lt;/P&gt;
&lt;P&gt;I have a JS library with an object that loads xml from a specified URL and populates specified HTML elements with the data.&amp;nbsp; This works fine.&lt;/P&gt;
&lt;P&gt;However recently I refactored the code&amp;nbsp;that calls this library, to be more OO (to allow it to be more easily extended).&amp;nbsp; Now the xml "load()" method raises the error "Access is denied" when loading from external urls. &lt;/P&gt;
&lt;P&gt;I've proved that the load library still works ok by calling it from a simple test script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So&amp;nbsp;why does the behavior of a JS function change based on what has called it?&lt;/P&gt;
&lt;P&gt;Any help will be very much appreciated!&lt;BR&gt;Thanks in advance&lt;BR&gt;Tim&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=78673"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=78673" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/78673.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/05/17/78673.aspx</guid>
            <pubDate>Tue, 16 May 2006 20:13:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/78673.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/05/17/78673.aspx#feedback</comments>
            <slash:comments>13</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/78673.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/78673.aspx</trackback:ping>
        </item>
        <item>
            <title>DOM Inspector not working in FF (FireFox)</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/05/11/77971.aspx</link>
            <description>&lt;P&gt;When you install Firefox on windows, by default it does not install the DOM Inspector.&lt;/P&gt;
&lt;P&gt;To make sure it installs it, select Custom Install then select Web Developer Tools.&lt;/P&gt;
&lt;P&gt;If you already have FF installed you can install the DOM Inspector without having to reinstall FF:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Run the FF installer - just so it unpacks the install without installing anything. 
&lt;LI&gt;Use file explorer to locate the C:\Documents and Settings\&amp;lt;username&amp;gt;\Local Settings\Temp dir.&amp;nbsp; FF will have created a temp directory to unpacked the install components into (in my case "7zS17.tmp"). 
&lt;LI&gt;Start FF. 
&lt;LI&gt;Drag adt.xpi onto the FF window.&amp;nbsp; This installs the dom inspector. 
&lt;LI&gt;Cancel the install. 
&lt;LI&gt;Restart FF.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Thanks very much to clagnut for his informative &lt;A href="http://www.clagnut.com/blog/340"&gt;post&lt;/A&gt; on this - and to Thierry B for his additional help on this.&lt;/P&gt;&lt;BR&gt;
&lt;P&gt;&lt;STRONG&gt;Update for Firefox 2.0:&lt;/STRONG&gt; (25 Oct 06)&lt;/P&gt;
&lt;P&gt;Same problem exists - whereby it did not install the DOM Inspector by default.&amp;nbsp; However the solution mentioned above does not appear to work (as I couldn't find the adt.xpi file) - so there is another work around - for which I've created another &lt;A href="http://geekswithblogs.net/timh/archive/2006/10/25/95045.aspx"&gt;post&lt;/A&gt;&amp;nbsp;(for feed subscribers).&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=77971"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=77971" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/77971.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/05/11/77971.aspx</guid>
            <pubDate>Thu, 11 May 2006 07:40:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/77971.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/05/11/77971.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/77971.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/77971.aspx</trackback:ping>
        </item>
        <item>
            <title>text-align: center; not working in Firefox</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/04/19/75606.aspx</link>
            <description>&lt;P&gt;I have the following scenario:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;.container{&lt;BR&gt;&amp;nbsp; text-align: center;&lt;BR&gt;&amp;nbsp; border: solid 1px blue;&lt;BR&gt;}&lt;BR&gt;&amp;lt;div class=container&amp;gt;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Text&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;div&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;In IE (6) this displays as you would expect (with the table centered).&amp;nbsp; However with Firefox (1.5) the table is left aligned.&lt;/P&gt;
&lt;P&gt;Apparently this is due to a bug with the way FF handles CSS.&lt;/P&gt;
&lt;P&gt;The workaround is to use this:&lt;BR&gt;&amp;nbsp; &lt;FONT face="Courier New" color=#0000ff size=2&gt;text-align: -moz-center;&lt;/FONT&gt;&lt;BR&gt;instead of &lt;BR&gt;&amp;nbsp; &lt;FONT face="Courier New" color=#0000ff size=2&gt;text-align: center;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Don't ask me why "-moz-center" even exists&amp;nbsp; - it's like they thought 'hey center doesnt work - lets make up our own version of it.. duh!&lt;/P&gt;
&lt;P&gt;Oh well - at least&amp;nbsp; it works (sort of).&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=75606"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=75606" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/75606.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/04/19/75606.aspx</guid>
            <pubDate>Wed, 19 Apr 2006 07:28:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/75606.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/04/19/75606.aspx#feedback</comments>
            <slash:comments>67</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/75606.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/75606.aspx</trackback:ping>
        </item>
        <item>
            <title>CSS nowrap alternative</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/04/16/75318.aspx</link>
            <description>&lt;P&gt;To achieve the same results as a TD nowrap (&lt;FONT face="Courier New" color=#0000ff size=2&gt;&amp;lt;td nowrap="true"&amp;gt;&lt;/FONT&gt;)&amp;nbsp;using cascading style sheets, use the following:&lt;/P&gt;
&lt;DIV&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;white-space: &lt;SPAN class=st id=st name="st"&gt;nowrap&lt;/SPAN&gt;;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;This style attribute only applies at the TD element level ie needs to be applied to each&amp;nbsp;TD, ie not the the TR or&amp;nbsp;TBODY.&amp;nbsp; If you're desparate to not apply it to each TD,&amp;nbsp; then&amp;nbsp;you can get away with only applying it to the&amp;nbsp;TD's of the first row - but this is only effective if applied to the cells containing thelongest data (so IMHO is a half-baked approach - ie don't do it).&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/DIV&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=75318"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=75318" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/75318.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/04/16/75318.aspx</guid>
            <pubDate>Sun, 16 Apr 2006 04:48:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/75318.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/04/16/75318.aspx#feedback</comments>
            <slash:comments>14</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/75318.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/75318.aspx</trackback:ping>
        </item>
        <item>
            <title>IE bug: HTTP POST with zero content-length (content-length = 0) (even though there is data in the post request)</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/01/26/67183.aspx</link>
            <description>&lt;P&gt;This little gem comes to us courtesy of MS's IE, whereby it resets the connection and sets content-length to 0 (zero), even though there is data in the post request, when the keep-alive timeout expires.&lt;/P&gt;
&lt;P&gt;Fortunately this only occurs when using HTTPS, and apparently it's limited to a particular version of IE (although I'm not 100% convinced about this).&lt;/P&gt;
&lt;P&gt;This bug is documented very well &lt;A href="http://telanis.cns.ualberta.ca/"&gt;here&lt;/A&gt; and by ibm &lt;A href="http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was.doc/html/Plug-in/1165399.html"&gt;here&lt;/A&gt;, and an typically difficult to understand MS solution &lt;A href="http://support.microsoft.com/default.aspx?kbid=831167"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Another solution I think may work (if you're using ASP.NET), is to flush the response manually (Response.Flush())- my understanding is that this will disable the keep-alive header that ASP.NET sends out.  Basically should allow you to still have the keep-alive setting switched on on your IIS server and by manually inserting the Flush() method you can restrict where this occurs to individual pages or apps (eg Global.asax).  Although I've not tried this and could be completely wrong ;-)&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=67183"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=67183" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/67183.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/01/26/67183.aspx</guid>
            <pubDate>Thu, 26 Jan 2006 01:35:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/67183.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/01/26/67183.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/67183.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/67183.aspx</trackback:ping>
        </item>
        <item>
            <title>IE and Firefox compatible javascript to enable or disable an anchor tag</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/01/19/66396.aspx</link>
            <description>&lt;P&gt;IE supports provides a half-baked&amp;nbsp;implementation of the non-standard attribute 'disabled' on anchor tags (ie it changes it's color -even though it does not actually disable the anchor (if it has an href value).&amp;nbsp;&amp;nbsp;Firefox does not provide any support for it.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;To add full 'disable' functionality to both browsers&amp;nbsp;there are a couple of work arounds (hacks):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Override the onclick event of the anchor (to do nothing) and override the visual&amp;nbsp;settings.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;or, more simply&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add or remove the href attribute (both browsers will enable/disable the anchor with this method).&lt;BR&gt;&lt;BR&gt;This causes both browsers to remove hyperlink behaviour: remove the underline, remove the hover mouse pointer (hand) and don't color the text blue.&amp;nbsp; It does not, however cause the anchor to be greyed out (which you can easily do if you wish).&lt;BR&gt;&lt;BR&gt;To allow this to work you need to store the existing href value - I just add another (non standard html) attribute eg href_bak.&lt;BR&gt;&lt;BR&gt;Eg:&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;function disableAnchor(obj, disable){&lt;BR&gt;&amp;nbsp; if(disable){&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var href = obj.getAttribute("href");&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(href &amp;amp;&amp;amp; href != "" &amp;amp;&amp;amp; href != null){&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.setAttribute('href_bak', href);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.removeAttribute('href');&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.style.color="gray";&lt;BR&gt;&amp;nbsp; }&lt;BR&gt;&amp;nbsp; else{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.setAttribute('href', obj.attributes['href_bak'].nodeValue);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.style.color="blue";&lt;BR&gt;&amp;nbsp; }&lt;BR&gt;}&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;
&lt;P&gt;PS - I've just (9 May 06) updated the JS above - god knows what I was thinking with the original post :-s&amp;nbsp; Thanks Heath K for the wake up call!&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=66396"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=66396" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/66396.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/01/19/66396.aspx</guid>
            <pubDate>Wed, 18 Jan 2006 23:54:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/66396.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/01/19/66396.aspx#feedback</comments>
            <slash:comments>37</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/66396.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/66396.aspx</trackback:ping>
        </item>
        <item>
            <title>IE and Firefox compatible javascript to reference innerText/text attribute</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/01/19/66383.aspx</link>
            <description>&lt;FONT face="Courier New" color=#0000ff size=2&gt;function getObjInnerText(obj){&lt;BR&gt;&amp;nbsp; if (document.all) { // IE;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return obj.innerText;&lt;BR&gt;&amp;nbsp; }&lt;BR&gt;&amp;nbsp; else{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (obj.text)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return obj.text; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("Error: This application does not support your browser.&amp;nbsp; Try again using IE or Firefox.");&lt;BR&gt;&amp;nbsp; }&lt;BR&gt;}&lt;/FONT&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=66383"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=66383" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/66383.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/01/19/66383.aspx</guid>
            <pubDate>Wed, 18 Jan 2006 22:12:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/66383.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/01/19/66383.aspx#feedback</comments>
            <slash:comments>4</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/66383.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/66383.aspx</trackback:ping>
        </item>
    </channel>
</rss>