[jQuery] jQuery BlockUI Plugin

[jQuery] jQuery BlockUI Plugin

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783"></HEAD>
<BODY>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=795084202-18062009>I am
tryingto get this to work but no go.</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=795084202-18062009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=795084202-18062009>I
have  :</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=795084202-18062009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=795084202-18062009>$('a[class^="edit_"]').click(function() {
<BR>        var url_id =
$(this).attr('href');<BR>  var e =
$(this).attr('class');<BR>  var x =
$(this).attr('id').split('_');<BR>  var y = x[0];<BR>  var z
= x[1];<BR>  //alert(e);<BR>  $('a[class^="edit_"]').block({
message: null }).fadeTo('slow' , 0.25 , function()
{<BR>   $('#resume_'+z).slideUp( 500 ,
function(){<BR>    $('#loading_'+z).show('fast', function()
{<BR>     $('#resume_'+z).load( url_id ,
function(){<BR>      $('#loading_'+z).hide(function(){<BR>       $('#resume_'+z).slideDown(500).fadeTo('fast',
1.0).fadeIn('slow');<BR>       });<BR>      });<BR>     });<BR>    return
false;<BR>    });<BR>   });               <BR>  });  </SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=795084202-18062009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=795084202-18062009>It appears
to block but you can still click onthe link and it will load another form. I
have a page that has 5 edit buttons that load a form into a div....i do not want
users to click more than1 at a time so i am blocking the edit buttons once one
is clicked. Submit the form or cancel releases the block and that also removes
its selfwhen the form is submitted</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=795084202-18062009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=795084202-18062009>Where am i
going wrong?</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=795084202-18062009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Dave </FONT></DIV></BODY></HTML>









































    • Topic Participants

    • dave