Error message

  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home/scain/
  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2405 of /home/scain/

Embedded JBrowse

This post is to experiment with embedding jbrowse in another page (Drupal for the moment, but the plan is to put it elsewhere when I get it working).

Note that I'm going to be pointing it at a temporary server, so if you come across this post after I've sorted it all out, there may be nothing here. Sorry.

The javascript that does the inserting is fairly straightforward. A simple div has it's contents replaced, like this:

<div id="jbrowse_new_div" class="jbrowse-view-iframe" style="width:100%;height:400px;background-color:#fff;resize: vertical;overflow: auto;" onrsize="resizeJBrowse();">Hmm, jbrowse failed to load :-(

<script type="text/javascript">
  document.getElementById("jbrowse_new_div").innerHTML='<object id="innerJBrowse" type="text/html" style="width:100%;height:400px;overflow: auto;" data="" ></object>';
Hmm, jbrowse failed to load :-(