oups, forgot to put the code i have so far:
<script type="text/javascript">
$(function() {
// cache the question element
var question = $('#question')[0];
$('.deleteLink').click(function() {
// block using our question element; override default border and
width
$.blockUI(question, { border: 'none', width: '300px' });
myurl = $(this).attr("href");
});
$('#yes').click(function() {
// update the block message
$.blockUI("<h1>Deleting, please wait...</h1><p>"+myurl+"</p>", {
border: '3px solid #ccc' } );
$.ajax({
//url: 'wait.php?' + new Date().getTime(), // prevent caching
in IE
url: myurl,
complete: function() {
// unblock when remote call returns
$.unblockUI();
}
});
return false;
});
$('#no').click($.unblockUI);
});
</script>
----------------
hello!
i would like to use blockUI to replace the classic confirm dialog box, as shown
on the modal dialogs example here:
http://malsup.com/jquery/block/dialog.html
in this case, i have several images, each with the option to delete it,
triggered by a hyperlink with a class "deleteLink".
I don't understand what should my php script return to blockUI so that it
displays a success/fail message.
Can you tip me in the right direction?
thank you
alex
--
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.441 / Base de données virus: 268.17.32/677 - Date: 8/02/2007 21:04
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/