clipbucket/upload/admin_area/styles/cbv3/layout/amplify.requests.html
Arslan Hassan ea10f2989b Added : New Category System inc SQL updates
Added : Amplify 
Added : bootstrap and jQuery UI
Added : Amlpify on front-end
Added : Category iCons
Updated : Admin Area Template
2012-05-19 13:42:45 +00:00

33 lines
No EOL
846 B
HTML

<script>
var ajaxURL = baseurl+'/admin_area/ajax';
//Update sidebar
amplify.request.define( "update-sidebar", "ajax", {
url: ajaxURL+"/widgets.php",
type: "POST",
dataType: "json",
decoder: function( data, status, xhr, success, error ) {
if ( status === "success" ) {
success( data );
} else {
error( data );
}
}
})
//Category Ajax Requests..
amplify.request.define("categories","ajax",{
url : ajaxURL+"/categories.php",
type : "POST",
dataType : "json",
decode:function(data,status,xhr,success,error)
{
if(status==='success'){
success(data);
}else{
error(data);
}
}
})
</script>