Hi all
I am opening a popup on click of a button and there is a "add to cart" button in the popup which is adding the product to the cart.
Its working fine in all browsers except safari in iphone and ipad and mac desktop safari.
On safari the popup closes on click of "add to cart" button and product doesnt gets added to cart.
javascriptCode:<form name="myform" id="myform" method="post"> <input type="hidden" value="<?php echo $id ?>" name="id" /> <input type="submit" value="ADD TO CART" name="qbutton" id="qbutton" /> </form>
ThanksCode:<script type="text/javascript"> $(document).ready(function() { $("#result").hide(); $("#qbutton").click(function() { $("#result").show(); $("#result").html('Processing...'); $.ajax({ type: "POST", url: "ajaxcart.php", data: $("#myform").serialize(), cache: false, success: function(data) { $("#result").html(data); } }); return false; }); }); </script>
Vineet



Reply With Quote


Bookmarks