Following is the Script i am working that will indicate the Feature Detection for Firefox i created a Json list i want to call each to check in the script to see wehther its undefined or not but its not working can someone help me i am too much exhausted....!!
<html>
<head>
<script type="text/javascript">
var JsonList =
{
"CheckSet": [
{
"property": "azimuth",
"result": 0
},
{
"property": "cue",
"result": 0
}
]
};
function Check()
{
//alert('working');
var looptrav;
var looplist = JsonList;
var indicator = 0;
for(looptrav = 0; looptrav < looplist.CheckSet.length; looptrav++)
{
if(typeof(looplist.CheckSet[looptrav].property) != "undefined")
{
looplist.CheckSet[looptrav].result = 1;
indicator = 1;
document.write ("Result: "+looplist.CheckSet[looptrav].result);
}
}
Check();
</script>
</head>
</html>