PHP function populateDialog(Core_Sijax_Response $response, $dialogId) { $response->html('#' . $dialogId, 'This is dialog ' . $dialogId); $response->script("$('#$dialogId').dialog('open');"); }