Difference between revisions of "Talk:Ajax Proxy"
From ADF Docs
(Created page with 'Need to add documentation around the use of jsonp example below: <source lang="java"> // get latest content $.ajax({ url:"#ajaxProxy#", data: ( { bean: "communityTrends",…') |
(No difference)
|
Latest revision as of 04:46, 13 April 2010
Need to add documentation around the use of jsonp example below:
// get latest content
$.ajax({
url:"#ajaxProxy#",
data: ( { bean: "communityTrends", method: latestMethod, renderCount: 5,
returnFormat: "json", jsonpCallback: "latestResults"} ),
dataType: "jsonp",
type: "get"
});
function latestResults(results){
for( i=0; i < results.length; i++ )
{
item = buildItem(results[i])
$("##" + panel + " .latest").append(item);
}
}