| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| I am currently pulling two remote .js files containing document.writes only that render HTML via SCRIPT tags in the main body of my widget. I need to refresh these two files based on a timer and find that doing a window.location.reload() breaks the flip animation. So it seemed to me that XMLHttpRequest would be a good way to go, as it can pull raw text strings in addition to individual pieces of an XML feed. The thing is, there is a restriction, stated in Apple's docs: " Second, the domain of the URL request destination must be the same as the one that serves up the page containing the script. This means, unfortunately, that client-side scripts cannot fetch web service data from other sources, and blend that data into a page. Everything must come from the same domain. Under these circumstances, you don't have to worry about security alerts frightening your users. " ...yet, I see it used in several widgets out there today including Xia's RSS Bean widget. Surely this constitutes pulling data from a remote domain. How is it working? I ask because I am having trouble getting my implementation to work, as testing in Safari and Firefox in the early development of this part of my widget. Thanks. bp |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Dashboard-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/dashboard-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.