Cordova jQuery WP 8 - Block Excedpion

I would like to deploy an application to WP8 with cordora.

I created an environment using cordova platform add windows

, but when I tried to deploy my application to the emulator, I got this error:

0x800c001c - JavaScript runtime error: Unable to add dynamic content. A script attempted to inject dynamic content, or elements previously modified dynamically, ...

In this answer Windows 8 Phonegap App JQuery Mobile Security Exception I read that:

WinJS security model won't allow the JQuery dom manipulation when you create elements from strings e.g. using the .html() method.

But the only method I use from jQuery is toggleClass ();

I read that the problem was fixed in jQuery 2.0, but I am using 2.1.1 ...

Any suggestion on how to fix it?

+3


source to share





All Articles