As quick update, I successfully tested this code from the sandbox:
parent.jQuery = (function(){
var $ = Function(),
document = parent.document,
init = jQuery.fn.init,
Sizzle = jQuery.find
;
$.prototype = jQuery.fn;
return function(selector, context){
return init.call(new $, Sizzle(selector, context || document));
};
})();
from the parent document and with these selectors:
jQuery("#test").html("Select By Id");
jQuery(".test").html("Select By class");
jQuery("div:eq(2)").html("Select By Tag Name");
everything worked perfectly except an error with jQuery on line 3230
3225 // document.body must exist before we can do this
3226 jQuery(function(){
3227 var div = document.createElement("div");
3228 div.style.width = div.style.paddingLeft = "1px";
3229
3230 document.body.appendChild( div );
3231 jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
3232 document.body.removeChild( div ).style.display = 'none';
3233 });
... any clue?
Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---