I need to open the jQuery UI dialog box and show the base form, which also includes the external javascript file.
Modal pop-ups, but none of the contents of the script download. I do not know why. If I go directly to the modal page, it works fine.
Modal Content:
<link rel="stylesheet" href="http://www.bankrate.com/free-content/css/bankrate-fcc-calculators.css" type="text/css"/> <input id="mrtgCal" type ="text" value="1,Arial,600" style="display:none" /> <script language="Javascript" src="http://js.bankrate.com/free-calculators/free-simple-mortgage-calculator-widget.js" type="text/javascript"></script> <script type="text/javascript">mrtgCalcinit();</script>
Modal call:
$(function(){ $('.modal-popup a, .email-button a').each(function() { var $link = $(this); var $dialog = $('<div></div>') .load($link.attr('href') + ' #region-content') .dialog({ autoOpen: false, width: 600, draggable: false, resizable: false, modal: true, show: "fade", hide: "fade", closeText: 'X' }); $link.click(function(){ $dialog.dialog('open'); return false; }); }); });
Kevin source share