4 ms·
Use jquery for cross-domain xhr.
by abi 17y ago
Use jquery for cross-domain xhr.
- natrius 17y agoThat's passable, but Greasemonkey does it in a more secure way than script tags, and it supports more features, like setting headers. http://wiki.greasespot.net/GM_xmlhttpRequest http://wiki.greasespot.net/GM_xmlhttpRequest
- jeresig 17y agoThis isn't using "script tags," it's using the (relatively) new Cross-Site XMLHttpRequest: http://ejohn.org/blog/cross-site-xmlhttprequest/ http://ejohn.org/blog/cross-site-xmlhttprequest/
- natrius 17y agoOh, that's nifty. I vaguely remember hearing about that, but I guess I'm so used to having to avoid using shiny new things that when the opportunity actually arises with extension code, it's hard to recall. Thanks for the info.