Portal | Homepage | Blog

Binding to ajaxSuccess on the checkout page


#1

Hi,

It’s a bit of a long shot but Is anyone aware of an updated method of binding to the checkout ajaxSuccess function for the latest version of jQuery? I’ve tried a few variations of the below but cannot seem to bind it to the existing ajax request. I can trigger another post request but that seems heavy handed due to the extra post request and also causes an additional delay which I would prefer to avoid if possible.

With older jQuery versions the below code was working flawlessly:

$('#checkout-section-shipping').bind('ajaxSuccess', function(event) {
if (event.type == 'ajaxSuccess') {
//do stuff to the content
}

thanks in advance.