Skip to: Site menu | Main content

I know stuff!

In web development and programming, I often come across useful tidbits that solve a problem for me. I often have those problems again and can't remember that tidbit. Now I will. Maybe you can benefit too.

Data Grids with AJAX, DHTML and JavaScript
Last Modified: 7/29/2010 by mr.dossett

Here's a great little article from Smashing Magazine on some very nice options for Data Grids.  Some are more attractive than others, but all seem to offer some great time saving functionality.

Read Full Article...

No onmouseover for options in IE
Last Modified: 7/29/2010 by mr.dossett

I was just trying to get a multi select list set up so that when I mouse over one of the options in said list, it would show information in an adjacent div.   In FireFox this worked just fine by adding an onmouseover to the option tags and have it update the div's innerHTML.  But for IE, there was no happiness.   IE apparently won't handle onmouseover or onclick for an option tag.  Cause who cares about option tags.   Well I finally came up with a solution, at least for my case. 

Read Full Article...

Unintentionally Overwriting Stylesheets in IE
Last Modified: 7/29/2010 by mr.dossett

As part of a recent request to customize the header of a SharePoint (MOSS 2007) site, I ran into a little problem when trying to dynamically replace a stylesheet using Javascript.  The page had two stylesheets loading, one core stylesheet and one theme stylesheet, in that order.  I was trying to replace the core stylesheet with an altered version for certain parts of the site, however when I did it was as if the theme stylesheet was being overwritten too.  The problem was in how IE handles the DOM and Stylesheets (this was not a problem in Firefox). 

Read Full Article...

AJAX Tabs - Remove, don't disable.
Last Modified: 7/29/2010 by mr.dossett

The other day I started having a strange problem with a DetailsView control inside of an AJAX Tab Panel.  When the control would load, the paging links looked normal, but when I'd click on one they would all become disabled.  In actuality, they were only being disabled in appearance since the paging function is associated with an onclick event rather than the actual href of the link.  So why would these all become disabled?

Read Full Article...

obj.watch() vs obj.onpropertychange()
Last Modified: 7/29/2010 by mr.dossett

I was trying to use javascript to do some trimming of content coming in on an RSS feed in SharePoint.  I created a function to do this which worked fine but I found that running it via window.onload was running before the RSS feed could load.   I needed a way to watch the div it loads in for a change of content.   Using the javascript watch function seemed like a reasonable solution but after much playing with it I realized IE doesn't appear to support it. 

Read Full Article...

IE7 "unknown runtime error" when editing innerHTML
Last Modified: 7/28/2010 by mr.dossett

I found this elsewhere in various forums and comments but not very concisely.  Basically it comes down to, you can't nest block elements in a P tag.  If you do, you can't edit the innerHTML of that block element. 

Read Full Article...

jQuery wrap(html) not working - appendChild bug
Last Modified: 7/29/2010 by mr.dossett

Today I ran into a problem where jQuery's wrap function wasn't working. It took me a while to figure out there even was a problem as it turns out it's browser specific. One guess, which browser had the problem. IE 7. I'd already upgraded to IE 8 which apparently fixed the appendChild bug.

Read Full Article...

jQuery/IE XML Error
Last Modified: 7/29/2010 by mr.dossett

Another odd jQuery issue to report (though not really jQuery's fault).  We just launched a new site with a Google suggest-esk drop down.  The suggest list is populated via an XML feed from our CRM.  After much pre-launch testing, we got a couple post-launch bug reports of a javascript error and the drop down not working.  Using the un-minified version of jQuery I was able to track it down to an error being returned from the isXML function it uses.

Read Full Article...