[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
Thanks guys I'll try that out. Appreciate the help! Mark On Sep 8, 5:52 pm, MorningZ <[EMAIL PROTECTED]> wrote: > Building on what Dave posts: > > $(document).ready(function(){ >         var url = '/scripts/orders.php'; >         var returnUrl = '/admin/dashboard'; >          function finish( me

[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
Thanks again, tried this out and everything worked great. Amazing what happens when you do things the right way. :) On Sep 8, 5:52 pm, MorningZ <[EMAIL PROTECTED]> wrote: > Building on what Dave posts: > > $(document).ready(function(){ >         var url = '/scripts/orders.php'; >         var retu

[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread Mark Steudel
Oh .effect is part of the Jquery ui library. I wanted a field to briefly flash letting the user know something has changed, but then the client wanted the page to redirect, so I can probably take out the effect. On Sep 8, 5:52 pm, MorningZ <[EMAIL PROTECTED]> wrote: > Building on what Dave posts:

[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread MorningZ
Building on what Dave posts: $(document).ready(function(){ var url = '/scripts/orders.php'; var returnUrl = '/admin/dashboard'; function finish( message ) { $("#status").html(message); $("#status").effect("highlight", {color: "green"}, 1000

[jQuery] Re: Redirect interupts ajax call

2008-09-08 Thread Dave Methvin
>         $("#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 argumen