Hello Chris:
Thanks for getting back with me on this. I am a beginning web programmer so I am a little out of my depth on this. But I have tried to do what you suggested, and I think I have an answer although it may not do any good. I put the add to cart button on another page that has latest version of everything. That page is: http://dantena.com/test
It has the button on the page and then right below a form with the button in an html block; and the upper button works and the one in the form does not. I have "viewed source" on the page and looked at the code for each one and they look identical, except that the first button has like "task_1" and the second one has "task_1_2" which I am thinking is OK...
Now there is no spacing in the closing of the CDATA; but it is that way on both; and so it seems that could not be the problem...I will paste in the source from each (page button first and form button second) so you can see:
/* <![CDATA[ */
(function($){
$(document).ready(function(){
$('.Cart66AjaxWarning').hide();
$('#addToCart_1').click(function() {
$('#task_1').val('ajax');
$('#task_1').val('addToCart');
$('#cartButtonForm_1').submit();
return false;
return false;
});
})
})(jQuery);
/* ]]> */
And here it is from the form:
/* <![CDATA[ */
(function($){
$(document).ready(function(){
$('.Cart66AjaxWarning').hide();
$('#addToCart_1_2').click(function() {
$('#task_1_2').val('ajax');
$('#task_1_2').val('addToCart');
$('#cartButtonForm_1_2').submit();
return false;
return false;
});
})
})(jQuery);
/* ]]> */
so - they seem identical and the spacing on close seems the same; so does this help any?
Please let me know...
Gerard
Posted 12 years ago on Wednesday January 11, 2012 |
Permalink