zar wrote:Hello,
Great work!
I like the way you use the
apprise plugin to enhance classic JS alert();.
I have a question about it when used in the "add to cart" action.
Which code do you run on "Go to cart"?
In my implementation, I wrote for the OK choice:
$(location).attr('href','http://mysite.com/shoppingcart.aspx');
But it doesn't work on IE7/8 (OK on IE9/FF/GC).
Any idea?
Thanks.
This is what you need;
var alertmessage = 'Alert message';
var gotocart = 'Go to Cart';
var continueshopping = '';
apprise(alertmessage, { 'verify': true, 'textYes': gotocart, 'textNo': continueshopping }, function (r) {
if (r) { window.location.href = "" + currenturl + "shoppingcart.aspx"; }
else { }
});
I have also changed the core apprise file as there were few bugs in it.