Skip to main content
Home Forums Silverlight Programming Programming with JavaScript Call window.external function in a silverlight 2(beta2) control ?
2 replies. Latest Post by AgentK on September 2, 2008.
(0)
AgentK
Member
1 points
2 Posts
09-01-2008 7:30 PM |
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 ?!? Thanks ;)Best regards.
Nuno.God...
164 points
27 Posts
09-01-2008 9:02 PM |
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
09-02-2008 3:52 AM |
Yes, I think also, it's the plan B. 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.
Bye!Best resgards.