Poku
Poku

Reputation: 3178

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().innerHTML = 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')

Upvotes: 4

Views: 282

Answers (2)

Poku
Poku

Reputation: 3178

I tried the code i wrote in topic myself and it works great!

Thumbs up for jQuery!

Upvotes: 0

Marcelo A
Marcelo A

Reputation: 5231

I think is better to insert the jquery.min.js on the new windows and there do the $(function(){// jquery stuff });

Upvotes: 2

Related Questions