...
Script MainPage.xaml.cs
public partial class MainPage : PhoneApplicationPage
{
.
snipit:
if(typeof window.console == "undefined")
{
window.console = {log:function(str){window.external.Notify(str);}};
}
window.onerror=function(e, url, lineNumber)
{
console.log("ERROR! : " +url + "(" + lineNumber + ") : " + JSON.stringify(e));
};
console.log("Installed console ! ");
: http://sim4all.com/blogging/?p=266.. , , onerror, nr .
this implements a Console.log object and an onerror message .. This is really useful ...
All this goat operation is only necessary for the Cordoba layer to be loaded. Then Cordoba takes better care of this.
Hope this helps. Kim
source
share