php - how to reload appended data in an Iframe -


after appending data in iframe using jquery need reload appended data. data contains script tags.

this example of code appended iframe. div apear iframe script won't work. alert added appears reason jquery code won't transform div dialog. said maybe it's because should reload appended data in iframe. possible?

<style>    .draggable { width: 90px; height: 80px; padding: 5px; float: left; margin: 0 10px 10px 0; font-size: .9em; }    .ui-widget-header p, .ui-widget-content p { margin: 0; }    #snaptarget { height: 140px; } </style>  <script type="text/javascript">    $(function() {      window.alert("test dialog1");      $( "#dialog1" ).dialog({ title: "notifications widget" });      $( "#dialog1" ).dialog( "option", "position", [200,200] );      $( "#dialog1" ).dialog().parents(".ui-dialog").draggable("option", "snap", true);    }); </script>  <div id="dialog1" class="draggable ui-widget-content">    <p>i notification widget</p> </div> 

thanks helping

the alert added appears reason jquery code won't transform div dialog.

alert appears, script added , works fine. remember must have jquery, jquery ui, css or ever else required code work correctly being linked inside iframe . has no direct access parent window code. may think browser tab/window.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -