url = "/ajax/functions.cfc"; //Load Product Data function loadProductData(objectId,destination) { new mxAjax.Data({ executeOnLoad:true, paramArgs: new mxAjax.Param(url,{param:"objectId="+objectId, cffunction:"getProductData"}), postFunction: handleData }); function handleData(response) { var myHTMLOutput = JSON.parse(response); document.getElementById(destination).innerHTML = myHTMLOutput; document.getElementById("lightBoxShoppingCartTxt").innerHTML = document.getElementById("shoppingCartTxt").innerHTML; } }