This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
JSONCrossdomainRequest.js | ||
| |
JSONCrossdomainRequest.swf | ||
| |
README.textile | ||
| |
expressInstall.swf | ||
| |
index.html | ||
| |
src/ | ||
| |
swfobject.js |
README.textile
JSONCrossdomainRequest
Do crossdomain json requests in javascript without hassles. Works with a flash proxy object. This object parses the JSON for you, so there will be no character encoding problems when sending the data to javascript.
Download the files and place them somewhere:
- JSONCrossdomainRequest.swf
- JSONCrossdomainRequest.js
- swfobject.js
Include the javascript in your file:
<script src="swfobject.js" type="text/javascript"></script>
<script src="JSONCrossdomainRequest.js" type="text/javascript"></script>
Set location of SWF if it is not in your root
JSONCrossdomainRequest.fSwfLocation = ‘/otherlocation/JSONCrossdomainRequest.swf’
Init the JSONCrossdomainRequest object
window.onload = function() {
JSONCrossdomainRequest.init();
}
Do the call and define a callback
function callback(pObject) {
alert(pObject)
}
window.onload = function() {
JSONCrossdomainRequest.init();
JSONCrossdomainRequest.onLoadComplete = function() {
JSONCrossdomainRequest.doRequest('http://localhost:4000/items.json?per_page=20?page=1', "", 'GET', callback);
}
}
JSONCrossdomainRequest is released under the MIT license. Please contact (jaapvandermeer AT gmail DOT com) if you have any suggestions or remarks.








