Calling javascript from silverlight application

Posted by Maheshp under Silverlight on 8/20/2011 | Points: 10 | Views : 1437 | Status : [Member] | Replies : 4
Dear All,
How to call javascript function from silverlight application?

Thanks,




Responses

Posted by: Sheebaas on: 8/23/2011 [Member] Starter | Points: 25

Up
0
Down
Refer this site
http://michaelsync.net/2008/01/18/silverlight-tipstricks-communicating-between-javascript-and-c

Maheshp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ndebata on: 8/23/2011 [Member] Starter | Points: 25

Up
0
Down
Try use Invoke in SilverLight 4
HtmlWindow window = HtmlPage.Window;

window.Invoke("YourMethodName", objectarrayofparameters);


Maheshp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Maheshp on: 8/24/2011 [Member] Starter | Points: 25

Up
0
Down
@Ndebata,I am using silverlight 3.

Maheshp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ndebata on: 8/24/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Mahesh,

I checked msdn site it should work in silver light 3 also.
http://msdn.microsoft.com/en-us/library/system.windows.browser.scriptobject.invoke%28v=vs.95%29.aspx

Maheshp, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response