Sorry bad english.
I'm working with jQuery Facebox. I have a <div>
refreshed by .load()
, and every time the .load()
works in a loop, I do a new search for the a[rel*=facebox]
. That's my source code:
setInterval(function() {
$("#upfileslist").load("upfileslist.php", function() {
$('a[rel*=facebox]').facebox({
loadingImage : 'images/loading.gif',
closeImage : 'images/closelabel.png'
});
}
);
}, 5000);
Aren't only links from the "upfileslist" div that are used Facebok.
In Google Chrome, that's working fine, but in Mozilla Firefox, the Facebox start appearing, and then, the page is refreshed and the target is loaded in full window, instead of in the Facebox box. This error appears:
Time: 25/09/2012 10:50:13
Error: TypeError: $("a[rel*=facebox]").facebox is not a function
File: http://my_js_file.js
行: 9 (closeImage: 'images/closelabel.png')
ありがとう。