[javascript] fix IFRAME implementation and make it work in IE 6/7 + FF3 with text/html served pages
For more information :
- http://groups.google.com/group/comp.lang.javascript/msg/510f639e1fdebcc8
- http://msdn.microsoft.com/en-us/library/ms536389%28VS.85%29.aspx
function load_now(eltsel, holesel, reloadable) {
var lazydiv = jQuery(eltsel);
var hole = lazydiv.children(holesel);
if ((hole.length == 0) && !reloadable) {
/* the hole is already filled */
return;
}
lazydiv.loadxhtml(lazydiv.attr('cubicweb:loadurl'));
}
function trigger_load(divid) {
jQuery('#lazy-' + divid).trigger('load_' + divid);
}