Create Jquery Dialog From Javascript Object
I have an javascript / jquery object that renders html - a div with a table and an edit button, and a jquery popup dialog. I have always called the jquery dialog in $(document).re
Solution 1:
Basically you want to convert your object
variable (though I'd want to think up a more appropriate name than "object") and initialise the dialog against that.
So, within whatever function calls object = new newTable('div_id');
paste your dialog initialisation from your question replacing -
$( "#" + this.popup_id ).dialog(
with
$(object).dialog(
Post a Comment for "Create Jquery Dialog From Javascript Object"