Is it possible to specify the expected datatype returned from the appAPI.request.get() call?
I'm running into an issue where I believe Chrome is expecting text/xml to be returned and we're actually returning text/html. appAPI calls work correctly in FF and IE, but not Chrome.
If I replace them with $jquery.get() calls and specify 'html' as the datatype they work in my unpacked debug Chrome extension.
Thanks,
Mike
p.s. Somewhat related StackOverflow Question/Answer:
http://stackoverflow.com/questions/17...
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
Hey Mike,
Currently we do not support setting datatypes returned from the appAPI.request.get() or post() methods.
appAPI.request doesn't expect any datatype and you can get the data returned from the callback params as pure text and do whatever you wish with it.
In the future we are going to integrate cross-domain calls within the $jquery.get() / post() methods themselves so it will have all the related jQuery features & functionalities.
Can you give us the URL you are trying to fetch (or set up a test URL for us) so we can recreate the issue you are having ? This will help us to find a solution for your issue. -
-
I'm currently experiencing this with ALL of the appAPI.request's that I'm trying to execute via Chrome.
Example in FF:
https://img.skitch.com/20120318-gk92u...
Example in Chrome:
https://img.skitch.com/20120318-1xubw...
For both (numbers match placement in screenshots):
1. The URL in question (this is to my localhost via showoff.io and also requires you to be authenticated so I don't think you can get to it.)
2. In the Chrome screenshot you can see in the inspector that we're returning text/html
3. In Chrome the html snippet is not seen, in FF (and while not shown, in our testing this works in IE as well) the snippet is returned.
Changing the code as shown in this pastie: http://pastie.org/3624339
Results in things working in Chrome (at least in an unpacked debug extension), but not in the other browsers. -
Loading Profile...




EMPLOYEE
