[jQuery] blockUI question

[jQuery] blockUI question

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=390342315-09022007><FONT face=Arial size=2>oups, forgot to put
the code i have so far:</FONT></SPAN></DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial size=2><script
type="text/javascript"><BR>    $(function()
{<BR>        // cache the question
element<BR>        var question =
$('#question')[0];</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2>       
$('.deleteLink').click(function()
{<BR>            // block
using our question element; override default border and
width<BR>           
$.blockUI(question, { border: 'none', width: '300px'
});<BR>            myurl
= $(this).attr("href");<BR>       
});</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2>        $('#yes').click(function()
{<BR>            //
update the block
message<BR>           
$.blockUI("<h1>Deleting, please
wait...</h1>

"+myurl+"

", { border: '3px solid #ccc' }
);</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2>           
$.ajax({<BR>               
//url: 'wait.php?' + new Date().getTime(), // prevent caching in
IE<BR>               
url:
myurl,<BR>               
complete: function()
{<BR>                   
// unblock when remote call
returns<BR>                   
$.unblockUI();<BR>               
}<BR>           
});<BR>            return
false;<BR>        });</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2>       
$('#no').click($.unblockUI);<BR>   
});<BR></script></FONT></SPAN></DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2>----------------</FONT></SPAN></DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2>hello!</FONT></SPAN></DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial size=2>i would like to use
blockUI to replace the classic confirm dialog box, as shown on the modal dialogs
example here:</FONT></SPAN></DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial size=2><A
href="http://malsup.com/jquery/block/dialog.html">http://malsup.com/jquery/block/dialog.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial size=2>in this case, i have
several images, each with the option to delete it, triggered by a hyperlink with
a class "deleteLink".</FONT></SPAN></DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial size=2>I don't understand
what should my php script return to blockUI so that it displays a success/fail
message.</FONT></SPAN></DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial size=2>Can you tip me in
the right direction? </FONT></SPAN></DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial size=2></FONT></SPAN><FONT
face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial size=2>thank
you</FONT></SPAN></DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=390342315-09022007><FONT face=Arial
size=2>alex</FONT></SPAN></DIV><BR>
<P><FONT size=2>--<BR>Ce message Envoi est certifié sans virus connu.<BR>Analyse
effectuée par AVG.<BR>Version: 7.5.441 / Base de données virus: 268.17.32/677 -
Date: 8/02/2007 21:04<BR></FONT></P></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/