[jQuery] Thickbox tweak need help :)
I am attempting to give the remove options so i can pass back a flag to
refresh the parent page or load a url in the parent page that was
constructed in the thickbox.
function TB_remove( options ) {
$("#TB_imageOff").unclick();
$("#TB_overlay").unclick();
$("#TB_closeWindowButton").unclick();
$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').remove();});
$("#TB_load").remove();
options = options || {};
if(options['refresh']) {
var sURL = unescape(window.location.pathname);
window.location.reload( false );
}
if(options['url']) {
var sURL = unescape(window.location.pathname);
window.location.url(options['url']);
}
return false;
}
i am assigning the link a click action to execute the tb remove with
options.
$(".external").click(function(){
TB_remove({url:this.href});
});
snippet of the applied to html
<td class="left"><a href="/blog.php?id={key}"
class="external">{data.headline}</a></td>
Jason Yeckel
www.purepressure.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/