// #/cloud sammy.get ( /^#\/(cloud)$/, function( context ) { var content_element = $( '#content' ); $.get ( 'tpl/cloud.html', function( template ) { content_element .html( template ); var cloud_element = $( '#cloud', content_element ); var cloud_content = $( '.content', cloud_element ); $.ajax ( { url : app.config.zookeeper_path, dataType : 'json', context : cloud_content, beforeSend : function( xhr, settings ) { //this // .html( '
' + response.znode.data + '' ); var props = []; for( var key in response.znode.prop ) { props.push ( '
' + response.znode.data.esc() + '' : 'File "' + response.znode.path + '" has no Content'; data_element .show() .html( data ); } }, error : function( xhr, text_status, error_thrown) { }, complete : function( xhr, text_status ) { } } ); return false; } ); }, error : function( xhr, text_status, error_thrown ) { var message = 'Loading of
' + app.config.zookeeper_path + '
failed with "' + text_status + '" '
+ '(' + error_thrown.message + '
)';
if( 200 !== xhr.status )
{
message = 'Loading of ' + app.config.zookeeper_path + '
failed with HTTP-Status ' + xhr.status + ' ';
}
this
.html( '