I just loaded an XML page and it caused an error to show up in FireBug.  I
tracked it down easily and found that the following code should solve the
problem.  The script assumed that there would always be a 'head' element in
a file, this fixes that issue.

var head = document.getElementsByTagName("head")[0];
if(head) {
        var n = document.createElement("script");
        n.src = "http://paul.jquery.com/jquerydetector.js";;
        head.appendChild(n);
}

-- 
View this message in context: 
http://www.nabble.com/Want-to-know-if-sites-are-jQuery-powered--Check-this-out%21-tf3201672.html#a8891047
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to