Skip to content
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

Closed
intesar opened this issue Jun 9, 2012 · 6 comments

Comments

@intesar
Copy link

intesar commented Jun 9, 2012

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.

@mbessey
Copy link

mbessey commented Jun 9, 2012

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.

@intesar
Copy link
Author

intesar commented Jun 9, 2012

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 ?

@mbessey
Copy link

mbessey commented Jun 9, 2012

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.

@intesar
Copy link
Author

intesar commented Jun 9, 2012

@mbessey Thanks for the clarification, I'm going to close this issue.

@intesar intesar closed this as completed Jun 9, 2012
@unwiredben
Copy link
Contributor

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.

@intesar
Copy link
Author

intesar commented Jun 9, 2012

@unwiredben Thanks for the suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants