Page view counter
Call window.external function in a silverlight 2(beta2) control ? Subscribe to this thread
Last post 09-02-2008 3:52 AM by AgentK. 2 replies.
Sort Posts:
09-01-2008 7:30 PM
Call window.external function in a silverlight 2(beta2) control ?

Hi,

I tried to translate this javascript code to C# in a control silverlight.

var objJohnDoe = window.external.JohnDoe();
objJohnDoe.Message("Hello");

But I can't find the solution.

In theory, there are not problems of security because you can call this method in Javascript so there is a method to call this method in Silverlight...

Can somebody help me ?!? Crying

Thanks ;)
Best regards.

AgentK

Loading...
Joined on 09-01-2008
Posts 2
09-01-2008 9:02 PM
Marked as Answer
Re: Call window.external function in a silverlight 2(beta2) control ?

Hi Agent K,

    What you're trying to do is Access a ScriptableObject from within Silverlight and so you can see this interesting post about the subject that will most likely solve your problem.

 Hope it helps,

    Nuno Godinho

Nuno Filipe Godinho [MVP ASP/ASP.NET]

Nuno.Godinho

Loading...
Joined on 02-07-2008
Portugal
Posts 26
09-02-2008 3:52 AM
Re: Call window.external function in a silverlight 2(beta2) control ?

Yes, I think also, it's the plan B.Hmm I can do a javacript's wrapper with the methods in window.external.

Thanks ! I will start this wrapper. If somebody has a best plan, he can reply on this forum.Geeked

Bye!
Best resgards.

AgentK

Loading...
Joined on 09-01-2008
Posts 2
Microsoft Communities