Click here to Skip to main content
15,897,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Good Day All,

I have a unique issue. I am creating a video game site based in silverlight. I wanted to use the GamePro API to draw articles/products/content. All of this is working as planned. However, GamePro has several widgets that I wanted to take advantage of until I could create my own articles and calender feeds.
So I grabbed their free widgets (which are flash based) and stuck them into the htmlHost control on my home page in the silverlight website. The issue is that in the widgets, there are links that lead to various articles and games and whatnot.

I need to know if there is anyway to intercept when a link is clicked in the widget, so I may redirect it within my page. Currently it opens to gamepro.com/whateverthearticleorgametheyclickedis in a completely new browser window and this is just ugly and sloppy. I would like it to either open inside another host control or at the very worst in a new tab.
Below is the widget code which is sitting within the tags of an html page called by my htmlhost control within my silverlight app:
XML
<object width="600" height="400" type="application/x-shockwave-flash" quality="high" id="W4a1f1dce3da75946" data="http://widgets.clearspring.com/o/49f8a96303a6cedf/4a1f1dce3da75946/49f8a96303a6cedf/b862914" 
    allowScriptAccess="always" allowNetworking="all"  
    pluginspage="http://www.macromedia.com/go/getflashplayer">
    <param value="http://widgets.clearspring.com/o/49f8a96303a6cedf/4a1f1dce3da75946/49f8a96303a6cedf/b862914" name="movie"/>
    <param name="wmode" value="opaque"/>
    <param name="salign" value="tl" />
    <param name="windowless" value="true" />
    <param name="allowScriptAccess" value="always"/>
    </object>


Any help on this matter would be greatly appreciated!!
Posted
Updated 21-Jul-10 20:34pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900