Personal tools

User:Hisa/SemanticSbox: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
Line 17: Line 17:


// xml loading test
// xml loading test
            jQuery . ajax(
$.ajax({
                'http://www.ebi.ac.uk/QuickGO/GTerm?id=GO:0003824&format=oboxml',
    url: '/resource_browser/nwfiles/10563-108A5.gml',
                {
    type: 'GET',
                    dataType: 'xml',
    dataType: 'xml',
                    success: function( data ) {
    error: function(){
var html = jQuery ( this ) . find( 'defstr' ) . text();
        $('#oboxml').text('Error loading XML document');
jQuery( '#oboxml' ) . append( html);
    },
 
    success: function(xml){
                    },
        $('#oboxml').text('success');
                    error: function( data ) {
//$('#oboxml').html(xml);
                        jQuery( '#oboxml' ) . text( 'error on loading information' );
    }
                    }
});
                }
            );





Revision as of 17:15, 26 June 2012