Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug AttachEvent no longer working
0 replies. Latest Post by Retireme99 on June 11, 2008.
(0)
Retireme99
Member
1 points
4 Posts
06-11-2008 8:37 AM |
My code of course worked in Beta 1. Here is what I'm doing. I have a browser helper object that adds a silverlight control to certain web pages. This silverlight control then reads and manipulates the web page, adding some links, which I use AttachEvent to run code in my silverlight control. With beta 2 the event is never raised -- no error no exception nothing happens. I can still read and manipulate the HTML elements on the host web page.
So the interesting points. The BHO runs on a web page external to my server. For example, in IE you navigate to www.yahoo.com. My BHO fires then loads the Silverlight control from my web server. The silverlight control adds the links and fires the events. Think Firefox's greasemonkey but with silverlight. It is fantastic in beta 1... and it even works in Firefox.
But now in beta 2 nothing fires. I'm hoping this is a bug in beta 2 and not some kind of design choice. I can get my silverlight control to work if I host the web page on the same server as the silverlight control.