Widget resources, widgets for download, tutorials and more at widgipedia.com
Popular Tags:

action adventure alfanet apple arcade blog blogs business cars clock dashboard drive flash free fun game games garageband google idvd ilife imovie iphoto islam iweb kpop mac macwidgets mario music news platform play puzzle search searchfree shoot sports strategy thedashboard tvwidgets websearch widget widgetindex widgettv
Log in to Widgipedia
The Widgipedia Forum : Web Widgets
Questions about web widgets, development, parametrization and deployment.
Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
January 16, 2007 05:54AM

messageHow do I fix the crossdomain issue with Flash widgets?
Flash widgets have a built-in security mechanism that causes an alert to pop up or even a silent code failure whenever data is accessed by the widget from a domain other than the domain the widget itself is served from. This is a common issue with Flash widgets and can be fixed in two ways:

* If you have file access to the website your widget is pulling data from, you can place a file called crossdomain.xml in the server's document root with the following content:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

You can read more about the crossdomain.xml file here.

* If you don't have access to the server you want to pull data from, you can still do it by using the Widgipedia redirect page. All you need to do is prepend the URLs in your widget code with
http://www.widgipedia.com/redirect/
For instance, if your widget pulls external data from
http://www.mysite.com/rss/
you will need to replace the URL with:
http://www.widgipedia.com/redirect/http:// www.mysite.com/rss/

  
XIX
Avatar
(IP Logged)
January 17, 2007 05:18AM

messageRe: How do I fix the crossdomain issue with Flash widgets?
That redirect is really useful, makes it easy to throw together rss readers and such without having to host personal redirects elsewhere.

Cheers smiling smiley

  
Ernesto Quezada
(IP Logged)
January 17, 2007 03:30PM

messageRe: How do I fix the crossdomain issue with Flash widgets?
you can use PHP as well to take the XML data from another site and your widget can pull it from your website if the php script is hosted in the same domain as your widget.
smiling smiley

salut

  


Sorry, only registered users may post in this forum.
Check out our sister site Dealio for Cyber Monday Deals and Nordstrom Coupons.
This forum powered by Phorum.