Scott Klement wrote:I'm not familiar with C#, but I think what you're asking is more related to JavaScript than it is C#, correct? You're inserting JavaScript code into a page that is trying to read the contents of an iframe.
Normally, JavaScript code can only access the contents of a different iframe if it comes from the same "origin" (by "origin", I mean the same host/port.) There is a way to override this, but only if access is granted with special HTTP headers (and I'm not certain whether that is available in all browsers.) You cannot normally access contents in an iframe from a different origin because this would allow rogue web sites to steal your personal information. Since this would be a huge security problem, web browsers specifically look for it and block it.
I've glanced over the StackOverflow link you posted, and it looks like the responder over there said the same thing.
Thanks for your reply Scott.
Javascript was as a matter of fact my first try, but then I run into the problems described by you and the StackOverflow community.
So:
- I created a Windows Form Application
- Installed it on my Server (it works)
- Tried to Run it following this page:
http://www.profoundlogic.com/docs/pages ... d=26607685
- I tried by using this notation:
Code: Select all
var command = "C://Users//filip//Desktop//Taric//Login.Application"; -> or Setup.exe
pui.runPCCommand(command);
or by calling directly:
Code: Select all
pui.runPCCommand("Login"); -> "Login.Application" -> "Setup.exe"
I tried also with the example but no windows alert appeared, so maybe I'm missing something.