i have the following function.what i want is for my currency and currency rate to be displayed in a table dynamically.bef ore am getting the data as follows
Code:
function moveToForexRatesSuccess(result) {
alert("in success");
WL.Logger.debug("in moveToForexRatessuccess");
busyIndicator.hide();
alert("before result");
alert(result.invocationResult.text);
result = JSON.parse(result.invocationResult.text);
dataObject = eval(result);
alert("afta result");
for (var i = 0; i < dataObject.length; i++) {
var object = dataObject[i];
alert("in if statement");
alert("in else clause");
info = document.getElementById("forexDetails").
[B]//the following is the code i want to come out.i want the info.innerHtml to be a table of currency and currency rate// [/B]
info.innerHTML = "Currency: "+object["currency"]+""+"CurrencyRate: "+object["currencyrate"]+"<br />";
alert("before change page");
$.mobile.changePage("#forexRatesView", { transition: "turn"});
}
Comment