Post by gitbro » Mon Jun 25, 2018 5:12 am

Hi all, does anyone know how i can add a loading image to the json below ... thanks.

function submitgiftproduct(gift_product_id) {
$.ajax({
url: 'index.php?route={{ giftprod_modpath }}/applygiftprod',
type: 'post',
data: 'gift_product_id=' + encodeURIComponent(gift_product_id),
dataType: 'json',
success: function(json) {
if (json['redirect']) {
setTimeout(function () { location.reload(); }, 1000);
}
}
});
}

New member

Posts

Joined
Sat Oct 31, 2015 6:58 am

Post by gitbro » Mon Jun 25, 2018 7:03 am

It dont mater iv done it :-)

New member

Posts

Joined
Sat Oct 31, 2015 6:58 am

Post by paulfeakins » Mon Jun 25, 2018 7:27 pm

gitbro wrote:
Mon Jun 25, 2018 7:03 am
It dont mater iv done it :-)
*doesn't
**I've

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: JessiesBoutique and 518 guests