> $("#approved").click(function(){ > $.get(url, { action: "approved", orderId: $("#orderId").val() > }, > finish( 'approved' ) ); > });
Mark, the second arg to $.get should be a function that is executed on completion. You're *callling* a function with the argument 'approved', which will happen even before $.get is called. Also, if the highlight is supposed to last 1000ms, you can't immediately redirect or that effect won't be seen. I am not familiar with .effect() but the .animate() method has a callback parameter that you can use to perform the assignment after the animation is complete.