views:

404

answers:

2

Hi,

I have Silverlight application test page named A.html hosted in an iframe which is an element of B.html, so is there a way for Silverlight app to access elements in B.html by referring something like HtmlPage.Document..?

Thanks!

+1  A: 

You can always walk up the DOM tree by doing something like this:

var htmlElement = HtmlPage.Document.DocumentElement.Parent;
Jeremiah Morrill
A: 

Using Silverlight/Moonlight is very risky. Most of your website's guests will not have this plugin installed. This will strongly limit your website accessibility.

Use Flash instead, or even better use only [x]html+css+javascript.

Not a very helpful answer. It's akin to telling someone to use Linux or Mac OS X when they say they've got a problem with a Windows virus.
ChrisF