i have a function:
function getPricing(ProductID,VariantID)
{
//alert('VariantID=' + VariantID);
if(ProductID == undefined || VariantID == undefined)
{
return;
}
var ChosenSize = "";
//var ChosenSizeList = document.getElementById('Size');
var ChosenSizeList = document.getElementById('AddToCartForm_' + ProductID + '_' + VariantID).Size;
if(ChosenSizeList != undefined)
{
ChosenSize = ChosenSizeList.options[ChosenSizeList.selectedIndex].text;
}
var ChosenColor = "";
//var ChosenColorList = document.getElementById('Color');
var ChosenColorList = document.getElementById('AddToCartForm_' + ProductID + '_' + VariantID).Color
if(ChosenColorList != undefined)
{
ChosenColor = ChosenColorList.options[ChosenColorList.selectedIndex].text;
}
var url = "ajaxPricing.aspx?ProductID=" + ProductID + "&VariantID=" + VariantID + "&size=" + escape(ChosenSize) + "&color=" + escape(ChosenColor);
//alert("Ajax Url=" + url);
makeHttpRequest(url,undefined,'pricing');
}
But how do i check that its being called? I want to display an alert box.
Any ideas?
Just put some logging inside of it and check your console?
or if you don’t have a browser with a console, you could always use an
alert