Menu icon Foundation
foundation.reveal.js

Is there anything in foundation.reveal.js that gets passed to the modal that can be used to call a function?

When the modal appears, I cannot get it to run my script to display a map.

http://absoluteorganics.com/modalMapDebug.html

does not work.

I am wondering if there is a js object that gets passed to the modal that can be used to call the function.

  <body onload="getMap();">
     <div>
       <input type="button" value="Show delivery Map" onclick="getMap();" onload="getMap();" />
     </div>
     <p>Onload event will not trigger function to show map, but clicking button will??</p>
     <div id='myMap' style="position:relative; width:800px; height:600px;"></div>
     <input type="hidden" onload="getMap();" />
     <a class="close-reveal-modal">&#215;</a>
  </body>
            

         

modalrevealjsfunctiononload

Is there anything in foundation.reveal.js that gets passed to the modal that can be used to call a function?

When the modal appears, I cannot get it to run my script to display a map.

http://absoluteorganics.com/modalMapDebug.html

does not work.

I am wondering if there is a js object that gets passed to the modal that can be used to call the function.

  <body onload="getMap();">
     <div>
       <input type="button" value="Show delivery Map" onclick="getMap();" onload="getMap();" />
     </div>
     <p>Onload event will not trigger function to show map, but clicking button will??</p>
     <div id='myMap' style="position:relative; width:800px; height:600px;"></div>
     <input type="hidden" onload="getMap();" />
     <a class="close-reveal-modal">&#215;</a>
  </body>
            

         
Tyler Jones about 1 year ago

 

  • Callable method for closing a modal
  • Have close button close all active modals MYBKExperience
  • Keyboard close with esc key
  • Document easy way to AJAX modal content
  • Add lightbox feature to make it easy to hookup custom data attributes to a lightbox functionality
  • Fix IE background to have opacity