I am tryingto get this to work but no go.
 
I have  :
 
$('a[class^="edit_"]').click(function() { 
        var url_id = $(this).attr('href');
  var e = $(this).attr('class');
  var x = $(this).attr('id').split('_');
  var y = x[0];
  var z = x[1];
  //alert(e);
  $('a[class^="edit_"]').block({ message: null }).fadeTo('slow' , 0.25 ,
function() {
   $('#resume_'+z).slideUp( 500 , function(){
    $('#loading_'+z).show('fast', function() {
     $('#resume_'+z).load( url_id , function(){
      $('#loading_'+z).hide(function(){
       $('#resume_'+z).slideDown(500).fadeTo('fast', 1.0).fadeIn('slow');
       });
      });
     });
    return false;
    });
   });               
  });  
 
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
 
Where am i going wrong?
 
Dave 

Reply via email to