Skip to main content
Commonmark migration
Source Link

Follow up to this question: apply downloaded CSS on windows 8 metroUI app

So, yes, Windows says "for security reasons, you cannot navigate to HTML you have downloaded to this location and you cannot run any executable or potentially executable code, such as script or CSS. It is intended for media such as images or videos and the like."

But I really, really want to use that css file from my local storage. Shouldn't I be able to use the [execUnsafeLocalFunction method][1]execUnsafeLocalFunction method to bypass this restriction like this?:

MSApp.execUnsafeLocalFunction(function () { el["href"] = "ms-appdata:///local/style.css" }); 

It still throws "An app can’t load remote web content in the local context." I also tried just reading the file with localFolder.getFileAsync and readText, but nothing seems to help. Is there really no way to work around this? [1]: http://msdn.microsoft.com/en-us/library/windows/apps/hh767331.aspx

Follow up to this question: apply downloaded CSS on windows 8 metroUI app

So, yes, Windows says "for security reasons, you cannot navigate to HTML you have downloaded to this location and you cannot run any executable or potentially executable code, such as script or CSS. It is intended for media such as images or videos and the like."

But I really, really want to use that css file from my local storage. Shouldn't I be able to use the [execUnsafeLocalFunction method][1] to bypass this restriction like this?:

MSApp.execUnsafeLocalFunction(function () { el["href"] = "ms-appdata:///local/style.css" }); 

It still throws "An app can’t load remote web content in the local context." I also tried just reading the file with localFolder.getFileAsync and readText, but nothing seems to help. Is there really no way to work around this? [1]: http://msdn.microsoft.com/en-us/library/windows/apps/hh767331.aspx

Follow up to this question: apply downloaded CSS on windows 8 metroUI app

So, yes, Windows says "for security reasons, you cannot navigate to HTML you have downloaded to this location and you cannot run any executable or potentially executable code, such as script or CSS. It is intended for media such as images or videos and the like."

But I really, really want to use that css file from my local storage. Shouldn't I be able to use the execUnsafeLocalFunction method to bypass this restriction like this?:

MSApp.execUnsafeLocalFunction(function () { el["href"] = "ms-appdata:///local/style.css" }); 

It still throws "An app can’t load remote web content in the local context." I also tried just reading the file with localFolder.getFileAsync and readText, but nothing seems to help. Is there really no way to work around this?

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Follow up to this question: apply downloaded CSS on windows 8 metroUI appapply downloaded CSS on windows 8 metroUI app

So, yes, Windows says "for security reasons, you cannot navigate to HTML you have downloaded to this location and you cannot run any executable or potentially executable code, such as script or CSS. It is intended for media such as images or videos and the like."

But I really, really want to use that css file from my local storage. Shouldn't I be able to use the [execUnsafeLocalFunction method][1] to bypass this restriction like this?:

MSApp.execUnsafeLocalFunction(function () { el["href"] = "ms-appdata:///local/style.css" }); 

It still throws "An app can’t load remote web content in the local context." I also tried just reading the file with localFolder.getFileAsync and readText, but nothing seems to help. Is there really no way to work around this? [1]: http://msdn.microsoft.com/en-us/library/windows/apps/hh767331.aspx

Follow up to this question: apply downloaded CSS on windows 8 metroUI app

So, yes, Windows says "for security reasons, you cannot navigate to HTML you have downloaded to this location and you cannot run any executable or potentially executable code, such as script or CSS. It is intended for media such as images or videos and the like."

But I really, really want to use that css file from my local storage. Shouldn't I be able to use the [execUnsafeLocalFunction method][1] to bypass this restriction like this?:

MSApp.execUnsafeLocalFunction(function () { el["href"] = "ms-appdata:///local/style.css" }); 

It still throws "An app can’t load remote web content in the local context." I also tried just reading the file with localFolder.getFileAsync and readText, but nothing seems to help. Is there really no way to work around this? [1]: http://msdn.microsoft.com/en-us/library/windows/apps/hh767331.aspx

Follow up to this question: apply downloaded CSS on windows 8 metroUI app

So, yes, Windows says "for security reasons, you cannot navigate to HTML you have downloaded to this location and you cannot run any executable or potentially executable code, such as script or CSS. It is intended for media such as images or videos and the like."

But I really, really want to use that css file from my local storage. Shouldn't I be able to use the [execUnsafeLocalFunction method][1] to bypass this restriction like this?:

MSApp.execUnsafeLocalFunction(function () { el["href"] = "ms-appdata:///local/style.css" }); 

It still throws "An app can’t load remote web content in the local context." I also tried just reading the file with localFolder.getFileAsync and readText, but nothing seems to help. Is there really no way to work around this? [1]: http://msdn.microsoft.com/en-us/library/windows/apps/hh767331.aspx

added 498 characters in body
Source Link
blub
  • 9.2k
  • 4
  • 33
  • 42

Follow up to this question: apply downloaded CSS on windows 8 metroUI app

So, yes, Windows says "for security reasons, you cannot navigate to HTML you have downloaded to this location and you cannot run any executable or potentially executable code, such as script or CSS. It is intended for media such as images or videos and the like."

But I really, really want to use that css file from my local storage. Shouldn't I be able to use the execUnsafeLocalFunction method[execUnsafeLocalFunction method][1] to bypass this restriction like this?:

MSApp.execUnsafeLocalFunction(function () { el["href"] = "ms-appdata:///local/style.css" }); 

It still throws "An app can’t load remote web content in the local context." I also tried just reading the file with localFolder.getFileAsync and readText, but nothing seems to help. Is there really no way to work around this? [1]: http://msdn.microsoft.com/en-us/library/windows/apps/hh767331.aspx

Follow up to this question: apply downloaded CSS on windows 8 metroUI app

I really, really want to use that css file from my local storage. Shouldn't I be able to use the execUnsafeLocalFunction method to bypass this restriction like this?:

MSApp.execUnsafeLocalFunction(function () { el["href"] = "ms-appdata:///local/style.css" }); 

Follow up to this question: apply downloaded CSS on windows 8 metroUI app

So, yes, Windows says "for security reasons, you cannot navigate to HTML you have downloaded to this location and you cannot run any executable or potentially executable code, such as script or CSS. It is intended for media such as images or videos and the like."

But I really, really want to use that css file from my local storage. Shouldn't I be able to use the [execUnsafeLocalFunction method][1] to bypass this restriction like this?:

MSApp.execUnsafeLocalFunction(function () { el["href"] = "ms-appdata:///local/style.css" }); 

It still throws "An app can’t load remote web content in the local context." I also tried just reading the file with localFolder.getFileAsync and readText, but nothing seems to help. Is there really no way to work around this? [1]: http://msdn.microsoft.com/en-us/library/windows/apps/hh767331.aspx

Source Link
blub
  • 9.2k
  • 4
  • 33
  • 42
Loading