Tim Huffam

Dotting the I and crossing the T of I.T.

  Home  |   Contact  |   Syndication    |   Login
  153 Posts | 0 Stories | 2747 Comments | 653 Trackbacks

News

Archives

Post Categories

Interesting Blogs/Links

January 2006 Entries

I got this error immediately after installing VS2005 & SQL Server 2005 Express and trying to establish my first connection using the new server - not a good start at all - and by the looks of it, it's happened to many hundreds, if not thousands, of others too. Generally this error occurs if you cannot connect to the SQL server - as the message says (no sh*t). However, what's not obvious is why... First suggestion is to make sure that you specifiy the instance name as well as the server name (christ ......

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. 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). This bug is documented very well here and by ibm here, and an typically difficult to understand MS solution here. Another solution I think may work ......

IE supports provides a half-baked 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). Firefox does not provide any support for it. To add full 'disable' functionality to both browsers there are a couple of work arounds (hacks): Override the onclick event of the anchor (to do nothing) and override the visual settings. or, more simply Add or remove the href attribute (both browsers ......

function getObjInnerText(obj){ if (document.all) { // IE; return obj.innerText; } else{ if (obj.text) { return obj.text; } else alert("Error: This application does not support your browser. Try again using IE or Firefox."); }} ......

To obtain an object or a 'all' collection of child objects somewhere in the DOM you can use something like this: var all, myObj; if (document.all) { // IE; all = document.all["myParentObj"]... myObj=document.all["myFormE... } else{ if(document.getElementById(... && document.getElementById("my... all = document.getElementById("my... myObj=document.getElementBy... } else alert("Error: This application does not ......