jquery - magnific popup background appears for full screen and closes as one clicks anywhere -


when click on link activates magnific popup ajax call, grey background appears full screen. trying see if background enough cover login form (inside pop up). wherever click inside ajax form automatically closes. need pls...

 <a class="simple-ajax-popup-align-top" href="result.php">try me</a><br> 

jquery ajax script

$(document).ready(function() { $('.ajax-popup-link').magnificpopup({     type: 'ajax',     aligntop: false,     overflowy: 'scroll' }); }); 

and result.php follows:

    <div class="login_body">      <form id='login' name="login" method="post" action="login_process.php" accept-charset='utf-8'>      <input type='hidden' name='submitted' id='submitted' value='1'/>      <div class="field_container">email:</label>     <input type='text' name='cust_email' id='email'  maxlength="100" style="width: 250px; height: 30px"; /></div>       <div class="field_container">password:</label>     <input type='password' name='cust_password' id='password'  maxlength="12" style="width: 250px; height: 30px"; /></div>      <input type='submit' name='submit' value='login' />        </div>     </form>     </div> 

you should add closeoncontentclick: false code, that:

$('.ajax-popup-link').magnificpopup({     type: 'ajax',     aligntop: false,     overflowy: 'scroll',     closeoncontentclick: false }); 

check documentation more options: http://dimsemenov.com/plugins/magnific-popup/documentation.html


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -