Note that there are some explanatory texts on larger screens.

plurals
  1. POMap not opening without refreshing page once closed
    primarykey
    data
    text
    <p>The website i am currently working on has a pop out div with a map of locations on it, my problem is once the pop up div has been closed i then have to refresh the page to open the div again It is running jquery - here is the code</p> <pre><code>&lt;script src="http://code.jquery.com/jquery-1.9.1.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function(){ $('#view_map_of_stocklists_link').click(function() { //$('#popupdiv').show('slow'); $("#popupdiv").css('visibility', 'visible'); $("#mappy").css('opacity', '1'); }); $('.closepopup').click(function() { $('#popupdiv').hide('slow'); }); }); &lt;/script&gt; </code></pre> <p>The styling </p> <pre><code>&lt;style&gt; #popupdiv { position: absolute; left: 50%; top: 50%; background-color: white; z-index: 100; height: 600px; margin-top: -200px; width: 960px; margin-left: -500px; padding: 20px; } #view_map_of_stocklists_link:hover { cursor:pointer; } .closepopup { margin-top: 60px; border: 1px solid #ccc; background-color: #000; color: white; cursor: pointer; } &lt;/style&gt; </code></pre> <p>and then the HTML itself</p> <pre><code>&lt;div id="popupdiv" style="visibility:hidden;"&gt; &lt;center&gt; &lt;iframe style="opacity:0;" id="mappy" src="http://mapsengine.google.com/map/embed?mid=zNedxWZ7lai0.krRxVqZZmyns" width="900" height="500"&gt;&lt;/iframe&gt; &lt;div class="closepopup" style="width:200px"&gt;Close&lt;/div&gt; &lt;/center&gt; &lt;/div&gt; &lt;h2 class="bold skin-font-color1"&gt;Our Beloved Stockists&lt;/h2&gt; &lt;h5 class="skin-font-color1 p-wrapper"&gt;&lt;!-- client txt --&gt; &lt;div id="view_map_of_stocklists_link" class="skin-font-color4"&gt; &lt;h4&gt;View map of stockists&lt;/h4&gt; &lt;/div&gt; </code></pre> <p>The website is <a href="http://www.tee-ze.co.uk/sosmoothies/" rel="nofollow">http://www.tee-ze.co.uk/sosmoothies/</a></p> <p>Cheers</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.
 

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