jquery - Cloning javascript library into iFrame -


I am creating a popup dialog using jQueryUI. I have problems because I am using the same blocks of HTML and Javascript code on the page. (This application was not designed for it and I do not want to read it in depth). So I have two tags with the same ID attributes in the document - on the page and in popup.

To avoid this, I decided to open a dialog in an iframe. Everything works, of course, but popup opens slowly (there is a long list of JS and CSS files to load). They are definitely in the cache, but the browser sends them a request to check them.

Question : Can anything be done as a quick help? I can connect to the original window using Javascript, so can I either import or clone (deep copy), for example, the jQuery library?

Text ">

You do not need to clone jQuery, you can also use it from within frame

  parents. $ ('Selector ', Document) .someMethod ()    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -