-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebService component doesn't work on IE9 & Windows Phone7 for cross site ajax calls #95
Comments
I think IE requires a different API for cross origin requests. There's an XDomainRequest object that you need to use rather than xmlhtttprequest. WebService could probably wrap this appropriately. |
Yes, you are right, WebService component uses xhr for ajax calls but IE9 doesn't support xhr for cross site calls, so eventually I feel WebService component is not a good choice. So my question is do I have to replace WebService with the new Ajax component for all my project to make it run on Windows Phone 7. Is this the right move ? |
Short term, yes - use Ajax, and you should be good to go on all platforms. I don't recall if WebService is on the short list for getting implemented soon. |
@mbessey Thanks for the clarification, I'm going to close this issue. |
Just a note -- you can often use the JSONP option for cross-domain access. It's supported with the enyo.JsonpRequest object or the jsonp flag to the new enyo.WebService. |
@unwiredben Thanks for the suggestion |
This is not a bug but rather a clarification. I'm sure WebService component is deprecated and replaced with Ajax in Enyo 2.0 but we have been using it and its working fine on PC, Chrome, Safari, Android, iOS devices except IE9 and Windows Phone 7, so my question is, is it recommended to totally get rid of WebService component and use Ajax feature for future cross platform support.
The text was updated successfully, but these errors were encountered: