RE: Loading CSS for AJAX apps.

Sam
Thu, 15 Jun 2006 21:45:12 -0000

function LoadCSS(file){
var head = document.getElementsByTagName(''head'').item(0)
var linkTag = $(''loadCSS'');
if(linkTag) head.removeChild(linkTag);
csslink = document.createElement(''link'');
csslink.href = file;
csslink.rel = ''stylesheet'';
csslink.type = ''text/css'';
csslink.id = ''loadCSS'';
head.appendChild(csslink)
}

Nice.  I''d like to hear of any cross-browser support issues, or lack
of.  I
can see this being useful in my application if it works.  Has anyone tried
this in Safari?

Sam