Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The 'one step behind' will be because in your dialog open event you try to load the data. So when the dialog shows it will show the old content and then suddenly the new content will appear.</p> <p>One way to approach this is to open the dialog but first clear the existing content and show a loading gif whilst you wait for the ajax call to respond with the data, which you then load into the dialog.</p> <p><strong>N.B</strong> If you are worried about the screen jerk when the dialog resizes then you could put the ajax response into a div that is positioned off screen then get the dimensions, then nicely animate the resize of the dialog whilst fading in the new content.</p> <pre><code>var dialogOpts = { title: "Make Modifications or Delete This Event", modal: true, autoOpen: false, height: "auto", width: "auto", close: function () { oTable.fnDraw(); } }; var $editDialog = $('#modify').dialog(dialogOpts); $(".editMe").button({ icons: { primary: 'ui-icon-document' }, text: false }).click(function () { var eventLink = $(this).attr("name"); //clear existing dialog content and show an ajax loader $editDialog.html('&lt;div class="loading" /&gt;'); //show the dialog $editDialog.dialog("open"); //get dynamic content and load it into the dialog and resize $.get("themes_edit.asp?id=" + eventLink, function(response){ //fade out ajax loader $editDialog.find('div.loading').fadeOut(500, function(){ $editDialog.html( response ) .dialog('option', 'position', 'center'); }); }); return false; }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload