Hi,

I am developing a web application with full of independent widgets in
form of iframes.
I would like to avoid embeding jquery (and jQuery UI) in each iframe's
head to reduce number of requests and want to use the libs from the
parent window instead. In iframes' head I tried the following code:

window.$ = window.content.$;
window.jQuery = window.content.jQuery;

Well it works but naturally as the jquery object belongs to the parent
document I can manipulate only the DOM nodes of parent document from
the iframe and not the DOM nodes of the iframe itself!
I think if I could replace the "document" object of "window.$" with
iframe's "document" object it would work!

1) any idea how, any other sollutions?
2) Is "=" copy by value or by reference? If I succeed to replace the
"document" object in "window.$", will it be also replaced in
"window.content.$"?

Thank you!

Reply via email to