J
JC
$(document).ready(function(){
var customerArray =
[["Vodafone","#ff9900","Internal"],
["Bharti","#acc","External"],
["","",""],
["Wimax","#ccc","Internal"],
["AzZ","#454787","Vendor"],
["Automation","#ddd","City"],
["Vodafone","#ff9900","Internal"],
["Bharti","#acc","External"],
["Wimax","#ccc","Internal"],
["AzZ","#454787","Vendor"],
["Automation","#ddd","City"],
["Vodafone","#ff9900","Internal"],
["Bharti","#acc","External"],
["Wimax","#ccc","Internal"],
["AzZ","#454787","Vendor"],
["Automation","#ddd","City"],
["Vodafone","#ff9900","Internal"]];
document.write('<div style="width: 960px; height: auto;">')
for (var i=0; i<=customerArray.length; i++) {
document.write('<div class="div_box_ie" style="background-
color:'+ customerArray[1] +'; width: 80px; height: 50px; float:
left; border:1px solid #ddd; font: 12px Bold Trebuchet MS; padding:
5px;">'+ customerArray[0] + "<br/>" + customerArray[2] +'</
div>');
}
document.write('</div>');
});
when I run this snippet .
Iam getting the JS error like ' customerArray is undefined. Could
anyone help me on this ?
Thanks,
JC
var customerArray =
[["Vodafone","#ff9900","Internal"],
["Bharti","#acc","External"],
["","",""],
["Wimax","#ccc","Internal"],
["AzZ","#454787","Vendor"],
["Automation","#ddd","City"],
["Vodafone","#ff9900","Internal"],
["Bharti","#acc","External"],
["Wimax","#ccc","Internal"],
["AzZ","#454787","Vendor"],
["Automation","#ddd","City"],
["Vodafone","#ff9900","Internal"],
["Bharti","#acc","External"],
["Wimax","#ccc","Internal"],
["AzZ","#454787","Vendor"],
["Automation","#ddd","City"],
["Vodafone","#ff9900","Internal"]];
document.write('<div style="width: 960px; height: auto;">')
for (var i=0; i<=customerArray.length; i++) {
document.write('<div class="div_box_ie" style="background-
color:'+ customerArray[1] +'; width: 80px; height: 50px; float:
left; border:1px solid #ddd; font: 12px Bold Trebuchet MS; padding:
5px;">'+ customerArray[0] + "<br/>" + customerArray[2] +'</
div>');
}
document.write('</div>');
});
when I run this snippet .
Iam getting the JS error like ' customerArray is undefined. Could
anyone help me on this ?
Thanks,
JC