Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T. January 2006 Entries
SQL Server 2005 SQLExpress error: ...provider: Named Pipes Provider, error 40 - Could not open connection to SQL Server
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 ......

Posted On Monday, January 30, 2006 12:32 PM

IE bug: HTTP POST with zero content-length (content-length = 0) (even though there is data in the post request)
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 ......

Posted On Thursday, January 26, 2006 2:35 PM

IE and Firefox compatible javascript to enable or disable an anchor tag
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 ......

Posted On Thursday, January 19, 2006 12:54 PM

IE and Firefox compatible javascript to reference innerText/text attribute
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."); }} ......

Posted On Thursday, January 19, 2006 11:12 AM

IE and Firefox compatible javascript to reference a single object or a collection of child objects in the DOM
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 ......

Posted On Wednesday, January 18, 2006 11:43 AM

Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net