I have a Cordova based Application. Which works perfectly on IOS and android platform. When I am building the Same Application for windows8.It crashes on append function.
$("#mainDiv").append(LoginTemplate);
I want to maintain the same code base for all platform . Is there any way we can allow the same on windows8 without adding this function everywhere?
MSApp.execUnsafeLocalFunction(function() {
$("#mainDiv").append(LoginTemplate);
});
Is there any way we can put this in config file? So that append function will allowed for windows8. The reason why I want to use this beacause I don't want to maintain a different code base for windows8 just for this.
("#mainDiv")should be$("#mainDiv"). Is this only here or also in the actual script?