Note that there are some explanatory texts on larger screens.

plurals
  1. POIframe: keep parent and iframe jquery librarys from conflicting
    primarykey
    data
    text
    <p>Ok here's the problem in a nut shell:</p> <p>I'm building a landing page editor and i'm loading user created templates into an iframe on the editor page. The parent has jquery and ui loaded on it because the tools include drag and drop. I'm dragging and dropping boxes and such into the iframe and then crawling the iframe and making the resulting dropped elements draggable within the iframe.</p> <p>So to be clear i have everything working perfectly you can drag and resize and everything from parent window into iframe. HOWEVER there is a conflict if the template that is loaded into the editor already has jquery in it.</p> <p>I need the templates loaded into the editor be be able to have jquery if they need them because some templates might have a jquery slider etc...</p> <p>My first question is ... if the parent "editor" page already has jquery on it and i'm crawling the iframe and manipulating content, is jquery already loaded in the iframe? in other words if someone had a jquery slider in their template could i just make sure the iframe doesn't load jquery and then the slider would still work because the parent already has it? If this is the case and I don't need them twice than is there an easy to way crawl the contents of an iframe and take out a script tag that is loading jquery ????</p> <p>My second question is ... is there a "no conflict" rule or something that i can call on jquery so it doesn't conflict if there are two?</p> <p>My third question is am i screwed :(?</p> <p>Please help me!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload