I have a list of pages that are dynamically generated with a echo statment. example:
<a href="<?php echo $action['href']; ?>"><span onclick="jQuery('#category_edit_dialog').dialog('open'); return false"><?php echo $action['text']; ?></a>
this is the code for making the jquery ui dialog window:
$.ui.dialog.defaults.bgiframe = true;
$(function() {
$("#category_edit_dialog").dialog({
width: 960,
hide: 'slide',
autoOpen: false,
});
$('#open_category_edit_dialog').click(function() {
$('#category_edit_dialog').dialog('open');
return false;
});
});
what i want to achive is in the moment that links are clicked a jquery ui dialog will load the content. So the question is more likely how to load external links that are generated with php.