Jquery on new Window objects?
Is it possible to use jQuery on a new Window javascript object?
Example:
win = new Window('mywindow','width= 400', 'height=400');
win.getContent().inne开发者_运维技巧rHTML = xmlFindNodeContent(XmlHttp.responseXML, "windowHtml");
jQuery(win).ready(function(){
do jQuery stuff on the new window here??
});
Is something like this possible?
NB: new Window() function takes some parameters before it works properly. Something like this:
window.open('mywindow','width=400,height=200')
I think is better to insert the jquery.min.js on the new windows and there do the $(function(){// jquery stuff });
I tried the code i wrote in topic myself and it works great!
Thumbs up for jQuery!
精彩评论