Microsoft JScript runtime error: 'null' is null or not an object

by filip 28. May 2008 12:44

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;

Tags: ,

Web Development

Flash standalone installer for internet explorer (IE MSI)

by filip 20. May 2008 13:14

I'm not sure why Adobe makes it so hard to install the flash player with a MSI.  By going to 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...


Web Development

Vista Sidebar Gadget, Transparent Backgrounds, and Font Color

by filip 9. May 2008 09:30

gadgetssWe've had a request from a client to build a Windows Vista Sidebar Gadget.  The background on the gadget is to be somewhat see-through.  So I've played around with gadgets, and noticed that when I make a semi-transparent background on the gadget, the font color gets all messed up.  For example, I wanted white text on a blue background with 50% opacity, and the font appeared blueish, even though it was supposed to be white.  If I turn off the opacity on the background, the font becomes white, but as long as there's opacity, the font is messed up.

Well, after doing some research, it appears there is a way to display the proper font color on transparent backgrounds, although I didn't find this anywhere on the Microsoft site.  The trick is to use JavaScript and the addTextObject() method.  Here's an example of some code, and the resulting gadget:


 1: <html> 
 2:   <head> 
 3:     <title>Sample Gadget</title> 
 4:     <style> 
 5:       body { width: 120px; height: 200px; font-size: 12px; margin: 0; font-family: Verdana; color: #FFFFFF; } 
 6:       .gadget { margin: 3px; } 
 7:     </style> 
 8:   </head> 
 9:   <body> 
 10:     <div class="gadget"> 
 11:       <div>This text is not white.</div> 
 12:     </div> 
 13:     <g:background id="background" src="images\bgblue.png" style="width:100%;height:100%;z-index: -1; position: absolute; top: 0; left: 0;" opacity="50"></g:background> 
 14:     <script language="javascript" type="text/javascript">
 1: document.getElementById("background").addTextObject("This text is white.", "Verdana", 12, "white", 3, 50);
 15:   </body> 
 16: </html>

Tags: ,

Windows Development

'AjaxControlToolkit' is undefined (javascript)

by filip 8. May 2008 13:14

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.

Fortunatelly, the solution turned out to be pretty easy:  Set the "CombineScripts" property of the ToolkitScriptManager to false.

 <ajaxToolkit:ToolkitScriptManager runat="server" ID="ajaxScriptManager" EnablePartialRendering="true" CombineScripts="false" />

Tags: , ,

Web Development | Web Development

And Bloodforge is up again...

by filip 4. May 2008 14:58

Well, after a few years of doing absolutely nothing with this site, I've decided to bring it up again.  Not sure what I'm going to use it for yet, but I think I'll be posting some annoying bugs I'm running into along with other information that probably no one in the world really cares about.  But its fun. 

Also, amazingly, a few days after I activated this domain again, I've noticed some people already visited this site... at first I thought it was some random stuff, but these visits were from South Bend, Granger, etc... strange, but neat at the same time.

This is a test of a trackback:



Bloodforge Band

Looking for the Bloodforge band site? Click here.

About Filip Stanek

Death Note Pic I'm a developer at ACG in Cincinnati, OH. I like ASP.NET, Flash, and other web technologies, & enjoy playing chess, video games, etc.

Currently playing:


Month List