Posted
on Dec 1, 2011
(permalink)
Hi ,
in my Silverlight app I used to do the following to call a Javascript function in a html page loaded in a RadHtmlPlaceholder
HtmlElement iframe = myradhtmlplaceholder.HtmlPresenter.Children[0] as HtmlElement;
iframe.SetAttribute("id", "myID");
HtmlObject myhtmlobj = HtmlPage.Document.GetElementById("myID").GetProperty("contentWindow") as HtmlObject;
myhtmlobj.Invoke("MyFunction", new string[] { "This is a test" });
Now I have a HTML version 5 page where I still have my 'MyFunction' javascript function defined, but
myhtmlobj is NULL.
Do I need (for html5) do a different call to get a handle for the htmlwindow ?
Hope you can help.
Best regards
Hans-Juergen