-
1. Re: Json
vivekuma Oct 28, 2014 2:17 AM (in response to wunderblock)You can use JSON.parse() and JSON.stringify() functions which are natively available in Javascript.
You can use these function in native ajax calls from javascript for retrieving json like this:
var xmlhttp = new XMLHttpRequest();
var url = "sometext.txt";
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
var myArr = JSON.parse(xmlhttp.responseText);
myFunction(myArr);
}
}
xmlhttp.open("GET", url, true);
xmlhttp.send();
function myFunction(arr) {
//use arr as json object here
}
hth,
Vivekuma
-
2. Re: Json
wunderblock Oct 28, 2014 6:19 AM (in response to vivekuma)Yes I know that but that's still pure Javascript without the kind of flexibility provided by the jQuery.ajax() method. I'm still hoping for some sort of implementation of it in EA.
-
3. Re: Re: Json
joel_pau Oct 28, 2014 6:46 AM (in response to wunderblock)You can rebuild "previous" version loading jQuery as first external script, using the “Add Script” option within the library panel.
- jQuery CDN version: https://code.jquery.com/jquery-2.1.1.min.js
- jQuery for local use: http://jquery.com/download/
-
4. Re: Using Json in Edge Animate (Was: Json)
wunderblock Oct 28, 2014 7:01 AM (in response to joel_pau)Yes we can Joel ! But this sounds counterproductive to me.
- "This dependency is removed in the latest Edge Animate Runtime, which means a smaller payload size and reduced number of downloads required for running your compositions."
The question is about moving to the AdobeEdge.$ wrapper while keeping the good parts of jQuery and $.ajax() is one of them.




