<script type="text/javascript">
window.onload=function() {
// id of Cytoscape Web container div
var div_id = "cytoscapeweb";
// initialization options
var options = {
// where you have the Cytoscape Web SWF
swfPath: "cytoscape/swf/CytoscapeWeb",
// where you have the Flash installer SWF
flashInstallerPath: "cytoscape/swf/playerProductInstall"
};
// init and draw
var vis = new org.cytoscapeweb.Visualization(div_id, options);
$.ajax({
url: "cytoscape/pathway_output/cytoscape_pathway.sif" ,
success: function(data){
vis.draw({ network: data });
},
error: function(){
alert("Error loading file");
}
});
};
</script>