Skip to main content

Microsoft Silverlight

Answered Question Call window.external function in a silverlight 2(beta2) control ?RSS Feed

(0)

AgentK
AgentK

Member

Member

1 points

2 Posts

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.

Nuno.Godinho
Nuno.God...

Member

Member

164 points

27 Posts

Answered Question

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]

AgentK
AgentK

Member

Member

1 points

2 Posts

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities