For Web developers

Notes

changeInnerHTML("pmyStatus", returnInnerHTML("pmyStatus")  is like += , returnInnerHTML gets current contents , change adds new stuff at end of current

<p id="pmyStatus">  </p>

Code for amInstalled as of Firefox Beta 10 Jan 9, 2012

navigator.mozApps.amInstalled(function (app)
      {
        if (app)
        {
            changeInnerHTML("pmyStatus", returnInnerHTML("pmyStatus") + app.manifest.description + " version " + app.manifest.version + "<BR>" );
            changeInnerHTML("pmyStatus", returnInnerHTML("pmyStatus") + app.origin + "<BR>" );
            changeInnerHTML("pmyStatus", returnInnerHTML("pmyStatus") + app.install_data.receipt + "<BR>" );
            changeInnerHTML("pmyStatus", returnInnerHTML("pmyStatus") + app.install_origin + "<BR>" );
            var iTime = new Date(app.install_time);

            changeInnerHTML("pmyStatus", returnInnerHTML("pmyStatus") +   iTime.toUTCString() + "<BR>" );
        }
        else
        {
           changeInnerHTML("pmyStatus", returnInnerHTML("pmyStatus") + " Not a Firefox app" + "<BR>" );
        }
      });
}

Output of above


Calculator, Expression Evaluator, JavaScript Eval with added Sandboxing Limitations 1.1111
http://garyjohnsoninfo.info
eyJhbGciOiAiUlM1MTIiLCAidHlwIjogIkpXVCJ9.eyJwcm9kdWN0IjogImh0dHA6Ly9nYXJ5am9obnNvbmluZm8uaW5mbyIsICJpc3MiOiAiaHR0cHM6Ly9hcHBzLXByZXZpZXcubW96aWxsYS5vcmciLCAidmVyaWZ5IjogImh0dHBzOi8vcmVjZWlwdGNoZWNrLmFkZG9ucy5tb3ppbGxhLm9yZy92ZXJpZnkvMTE3IiwgImRldGFpbCI6ICJodHRwczovL2FwcHMtcHJldmlldy5tb3ppbGxhLm9yZy9lbi1VUy9maXJlZm94L3VzZXJzL3B1cmNoYXNlcy8xMTciLCAidXNlciI6IHsidHlwZSI6ICJlbWFpbCIsICJ2YWx1ZSI6ICJnYXJ5LmpvaG5zb24uNTNAZ21haWwuY29tIn0sICJpYXQiOiAxMzI1NzkxNzQwLjQ0OTYzNzksICJ0eXAiOiAicHVyY2hhc2UtcmVjZWlwdCIsICJuYmYiOiAxMzI1NjkwMjEwLjB9.W6KhvTa85ADmJWndcBasDaSII_1FU3Cmoe3J7QF8IDpf_ADiBTr6PRzLnXbcqPlzH61DdJFnrGkzRyCNA1HmI0VG80gupeBcG7wjztknOnHjpfd52CAiQ6nPXo80jaUEP6-n86uFln7dlQAbPafjegBr2O_yiTKVHNbIPbyjHvU
https://apps-preview.mozilla.org
Thu, 05 Jan 2012 19:28:43 GMT

Document Tags and Contributors

 Last updated by: Gary.johnson.53,