ui.dialog jQuery :
$.ui.dialog.prototype.options.url; // Define a new option 'url'
"create", URL- "refresh":
var orig_create = $.ui.dialog.prototype._create;
$.ui.dialog.prototype._create = function(){
orig_create.apply(this,arguments);
var self = this;
if(this.options.url!=''){
self.element.load(self.options.url);
};
};
$.widget( "ui.dialog", $.ui.dialog, {
refresh: function() {
if(this.options.url!=''){
this.element.load(this.options.url);
}
}
});
:
function view_dialog() {
$('#dialog').dialog({
url:'blah2.aspx',
title: 'test' ,
modal: 'true',
width: '80%',
height: '740',
position: 'center',
show: 'scale',
hide: 'scale',
cache: false });
}
$('#dialog').dialog("refresh");
: http://jsfiddle.net/WLg53/1/