Warning: Division by zero in /.2/vhosts/www.friendlinkup.com/html/nonsense.php on line 340

Warning: Division by zero in /.2/vhosts/www.friendlinkup.com/html/nonsense.php on line 342
ThickBox at the end of any AJAX
raulsimoninib's Blog
O Yang do Ying, não o contrário.. RSS Feed - Newest 10 Posts Add To Favourites

ThickBox at the end of any AJAX
Posted on 2009-02-15 by raulsimoninib

Hi all,

My problem was that as happen with numerous the ThickBox stoped working at the end of being rendered on AJAX (in my particular case using Prototype Framework).

Solution: on the bottom of  your xHTML answer, or making it simple, in the end of your partial render add this code:

script type="text/javascript" language="JavaScript" >
$(document).ready(function(){
tb_init('a.thickbox, area.thickbox, input.thickbox');
imgLoader = new Image();
imgLoader.src = tb_pathToImage;
});
/ script>

But if you are using jQuery.noConflict(); probably if you are playing with JQuery as well as Prototype on the same page, then replace ‘$’ with ‘jQuery’

The solution was found on this Forum: http://community.xajaxproject.org/viewtopic.php?id=5528, very smart guys

Tested on FF 3, IE 6,7

MAke some comment! Its open!

feed | tags: uncategorized


del.icio.us digg Fark YahooMyWeb Reddit Furl NewsVine Spurl BlinkList blogmarks

<<< Back