Executing javascript from Silverlight out of browser app
I have a silverlight app that uses JavaScript to process images from facebook. The JavaScript calls context.drawImage which throws a security exception (NS_ERROR_DOM_SECURITY_ERR) which I understood happens since the image is not hosted by my server, but from a different server (in this case facebook).
After some research, I found that the correct permissions would be given to the app if run out of browser, but now I understood that I can't run the JavaScript since there is no browser to 开发者_JAVA技巧host it.
Is this correct? If so, can anyone suggest a workaround for running the JavaScript with the needed permissions to access a image hosted by a different server.
Thanks!
You are correct. JavaScript cannot run because there's no browser to host it.
The only solution is to rewrite the JavaScript.
精彩评论