This doesn't work: you're calling updater(...) first and then assigning the
result to your onComplete handler.

onClick = $('shopCartAdd').request({
  onComplete: function(xhr) {
    updater({container: 'shopCartOverview', action: 'shopCartUpdate'});
  }
});

-Fred

On Mon, Jul 7, 2008 at 1:46 PM, WebbedIT <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> onClick=\"$('shopCartAdd').request({
>  onComplete: updater({container: 'shopCartOverview', action:
> 'shopCartUpdate'})
> });\"
>
> but the onComplete is firing before my php script has updated the cart
> table so it simply refreshes the overview content rather than updating
> it with the new product count and total.



-- 
Science answers questions; philosophy questions answers.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to