$("#embeddedPopup").dialog("open");
Sean^DCT4 wrote: » Post your code and we should be able to help you. Very difficult to troubleshoot a coding issue without seeing the code / reason for the problem I'd imagine all you need is something like the following inside your click event: $("#embeddedPopup").dialog("open");
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <link rel="stylesheet" href="resources/demos/style.css" /> <script> $(function() { $( "#embeddedPopup" ).dialog({ height: 140, modal: true }); }); </script>
<div id="embeddedPopup" title="Basic modal dialog"> <p><iframe width="470" height="560" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="maps.google.com"> </iframe> <br /><small>View <a href="map" style="color:#0000FF;text-align:left">Centres</a> in a larger map</small> </p> </div> <a href="" onclick=$("#embeddedPopup").dialog("open");>Contact Details</a>
<script> $(document).ready(function() { $("#embeddedPopup").dialog({ autoOpen: false, modal: true, height: 600, width: 600 }); $("#contactbutton").click(function() { $("#embeddedPopup").dialog("open"); }); }); </script>
<div id="embeddedPopup" title="Hello"> <p><iframe width="470" height="560" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps/"></iframe> <br /><small>View <a href="https://maps.google.com/maps/" style="color:#0000FF;text-align:left">Information map</a> in a larger map</small> </p> </div>
<a id="contactbutton" href="#">Contact Details</a>
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/themes/redmond/jquery-ui.css" rel="stylesheet" type="text/css" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
Sean^DCT4 wrote: » Do you have references to: jQuery jQuery UI (Javascript) jQuery UI (CSS) Google CDN for jQuery Libraries:https://developers.google.com/speed/libraries/devguide#jquery So, above your jQuery code you should have something like Useful post on StackOverflow: http://stackoverflow.com/a/820444/550198
<head> <meta charset="utf-8"> <title>Title</title> <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width"> <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <link rel="stylesheet" href="style.css" media="screen"> <!--[if lte IE 7]><link rel="stylesheet" href="style.ie7.css" media="screen" /><![endif]--> <link rel="stylesheet" href="style.responsive.css" media="all"> <script src="jquery.js"></script> <script src="script.js"></script> <script src="script.responsive.js"></script> <link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/themes/redmond/jquery-ui.css" rel="stylesheet" type="text/css" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#embeddedPopup").dialog({ autoOpen: false, modal: true, height: 600, width: 600 }); $("#contactbutton").click(function() { $("#embeddedPopup").dialog("open"); }); }); </script> <style>.art-content .art-postcontent-0 .layout-item-0 { color: #3D3D3D; background: #DEDEDE; padding-right: 20px;padding-left: 20px; } .art-content .art-postcontent-0 .layout-item-1 { padding: 20px; } .ie7 .post .layout-cell {border:none !important; padding:0 !important; } .ie6 .post .layout-cell {border:none !important; padding:0 !important; } </style> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <link rel="stylesheet" href="resources/demos/style.css" /> </head>
<html> <head> <meta charset="utf-8"> <title>Title</title> <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width"> <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <link rel="stylesheet" href="style.css" media="screen"> <!--[if lte IE 7]><link rel="stylesheet" href="style.ie7.css" media="screen" /><![endif]--> <link rel="stylesheet" href="style.responsive.css" media="all"> <script src="script.js"></script> <script src="script.responsive.js"></script> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/themes/redmond/jquery-ui.css" rel="stylesheet" type="text/css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#embeddedPopup").dialog({ autoOpen: false, modal: true, height: 600, width: 600 }); $("#button1").click(function() { $("#embeddedPopup").dialog("open"); }); }); </script> <style>.art-content .art-postcontent-0 .layout-item-0 { color: #3D3D3D; background: #DEDEDE; padding-right: 20px;padding-left: 20px; } .art-content .art-postcontent-0 .layout-item-1 { padding: 20px; } .ie7 .post .layout-cell {border:none !important; padding:0 !important; } .ie6 .post .layout-cell {border:none !important; padding:0 !important; } </style> <link rel="stylesheet" href="resources/demos/style.css" /> </head> <body> <div id="container"> <a href="#" id="button1">Contact Details</a> <div id="embeddedPopup" title="Hello"> <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/?ie=UTF8&ll=53.312827,-6.251907&spn=0.341723,0.617294&t=m&z=11&output=embed"></iframe><br /><small><a href="https://maps.google.com/?ie=UTF8&ll=53.312827,-6.251907&spn=0.341723,0.617294&t=m&z=11&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small> </div> </div> </body> </html>