JQUERY UI - Dialog UI load $post content
Hi
I have this
script
- $('.modifica').click(function(){
var oTBL = document.getElementById('example')
var row_number = $(this).closest("tr")[0].rowIndex;
alert("row number: "+row_number);
var value = oTBL.rows[row_number].cells[0].firstChild.data
alert(oTBL.rows[row_number].cells[0].firstChild.data);
alert(value);
$.post('dati/testuali/test.php',{title: value} , function(resp){
$('<div>').dialog({
modal: true,
open: function () {
????);
},
close: function(event, ui) {
$(this).remove();
},
height: 400,
width: 600,
title: 'Ajax Page'
});
});
and i would like to insert th $.post response into a dialog ui how can I do that?
Ugo