Infobox and jQuery UI Dialog popup

Hi Hannah,

I have to connect a jQuery UI Dialog popup with Infobox description Hyperlink.

I tried but infobox does not let me add any java-script.

Here is jQuery UI Dialog popup code.
All i want is to open my new page in jQuery UI Dialog popup but some how i need to add jQuery code in info-box Iframe code base.

  <link rel="stylesheet" href="//">
  <script src="//"></script>
  <script src="//"></script>
  <link rel="stylesheet" href="/resources/demos/style.css">
  \(function\(\) \{ &nbsp;&nbsp;&nbsp;&nbsp;( "#dialog" ).dialog();

<div id="dialog" title="Basic dialog">
  <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>

Can you please help me?



The InfoBox disables running scripts by default for security purposes. However, you can enable it if you trust the scripts. Here is a code sample:

var iframe = document.getElementsByClassName(‘cesium-infoBox-iframe’)[0];
iframe.setAttribute(‘sandbox’, ‘allow-same-origin allow-scripts allow-popups allow-forms’);