Note that there are some explanatory texts on larger screens.

plurals
  1. POOverlay just a part of an external page with jquery
    text
    copied!<p>How can i load a part of an external page with jquery overlay? </p> <p>I have an aspx call TipoFactor.aspx wich has a div inside a contentplaceholder like this:</p> <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"&gt; &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt; &lt;ContentTemplate&gt; &lt;br /&gt; &lt;div id="DivGeneral" runat="server" class="tablaPaddingFiveCeleste"&gt; </code></pre> <p>as you can see the "DivGeneral" is the one i want to load into the overlay, wich is defined like this: </p> <pre><code>&lt;a href="TipoFactorSeleccion.aspx" rel="#overlay"&gt; &lt;button type="button"&gt; Pagina Externa&lt;/button&gt; &lt;/a&gt; &lt;!-- overlayed element --&gt; &lt;div class="apple_overlay" id="overlay"&gt; &lt;!-- the external content is loaded inside this tag --&gt; &lt;div class="contentWrap"&gt; &lt;/div&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; $(function() { // if the function argument is given to overlay, // it is assumed to be the onBeforeLoad event listener $("a[rel]").overlay({ expose: 'darkred', effect: 'apple', onBeforeLoad: function() { // grab wrapper element inside content var wrap = this.getContent().find(".contentWrap"); // load the page specified in the trigger wrap.load(this.getTrigger().attr("href")); } }); }); &lt;/script&gt; </code></pre> <p>As it is now its loading the entire page into the overlay and that's not good for me cause it inherites from the same masterpage as the other. I need to keep that masterpage because it has some important aplication functionality.</p> <p>What can I do ?<br> Thank you very much.</p>
 

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