You have a HREF int anchor, so all you have to do is use the jQuery download function to link it to the HTML and put it on it.
, HTML ( ):
<a href="<?php echo $action['href']; ?>" class="dialogLink"><?php echo $action['text']; ?></a>
javascript, :
$.ui.dialog.defaults.bgiframe = true;
$(function() {
$("#category_edit_dialog").dialog({
width: 960,
hide: 'slide',
autoOpen: false
});
$('a.dialogLink').click(function() {
var url = $(this).attr('href');
$('#category_edit_dialog').load(url, function() {
$('#category_edit_dialog').dialog('open');
});
return false;
});
});
click, dialogLink. URL-, , , , URL, div , , , HTML-, .