[jQuery] Thickbox/JQuery and Firefox not working
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
So I think I might have figured out a temporary solution:
I replaced the following in thickbox.js:
<blockquote>
<pre>//add thickbox to href elements that have a class of .thickbox
$(document).ready(function(){//when the document is loaded
$("a.thickbox").click(function(){
var t = this.title || this.innerHTML || this.href;
TB_show(t,this.href);
this.blur();
return false;
});
});
</pre>
</blockquote>
With this:
<blockquote>
<pre>addEvent( window, "load", TB_init );
function TB_init() {
$("a.thickbox").click(function(){
var t = this.title || this.innerHTML || this.href;
TB_show(t,this.href);
this.blur();
return false;
});
}
</pre>
</blockquote>
It works in Firefox and IE with the Metrics script enabled or disabled.
Is there a solution that doesn't involve changing this.
<pre>-- </pre>
Dave Reid
<a class="moz-txt-link-abbreviated" href="mailto:dave@davereid.net">dave@davereid.net</a>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/