IE8 and AjaxControlToolkit – Visibility bug

Well, I finally downloaded IE8 to see how some of the sites I’ve worked on behave.  Most things work just fine, however, I did find a pretty significant problem with the AjaxControlToolkit. I’ve been using the Tab control quite a bit, and I noticed that, when switching between tabs, the new tab was not showing up.  The old tab was hiding, though…  Debugging has led me to the setVisible method located in “Common/Common.js” in the AjaxControlToolkit.  Specifically, the problem existed in the following code: ...

June 18, 2008 · 2 min · filip

Using JavaScript methods in C#

I ran into a weird problem today.  I needed to escape a string in c# in such a way as to be able to unescape() it later with JavaScript into the original string.  JavaScript has an escape() method that is able to do this, but since I’m writing the code in C#, I can’t really access that method.  At first, I looked into HttpServerUtility.UrlEncode() and the HttpServerUtility.HtmlEncode() methods, but those are not equivalent to JavaScript’s escape() method.  ...

June 4, 2008 · 1 min · filip

Microsoft JScript runtime error: ‘null’ is null or not an object

Programming JavaScript can be fun, but sometimes when I get errors like this it can get a little frustrating… It happened on the following line, where the variable ‘o’ was null: o.onmousedown = Drag.start;

May 28, 2008 · 1 min · filip

Flash standalone installer for internet explorer (IE MSI)

I’m not sure why Adobe makes it so hard to install the flash player with a MSI.  By going to adobe.com and clicking on the “Get Flash Player” link, it will direct you to a page that automatically will attempt to install Flash in IE.  I needed a MSI because I needed to install Flash on a machine with restricted internet access.  Fortunately, even though they don’t advertise it, you can get a standalone installer for IE as well… ...

May 20, 2008 · 1 min · filip

‘AjaxControlToolkit’ is undefined (javascript)

I got this annoying error recently in a website I’ve been working on.  It worked perfectly fine locally, it worked fine after uploading to the web server on my machine and other machines in the lab (various browsers).  Then, it turns out, it doesn’t work on (one of) the client’s machines.  Of course, I’m unable to replicate the error locally. I looked around and it seems the first solution was to clear the cache.  A lot of people said that Ctrl+F5 works, others said they needed to manually clear the cache and then restart the browser.  Well, neither of those worked. ...

May 8, 2008 · 1 min · filip