From: CHAN, K. 1 [AG/7721] <ken...@mo...> - 2010-03-23 16:07:52
|
Hello jbrowse developers, I tried to add an extra customized link to the jbrowser. I am not familiar with javascript so I still couldn't do it properly. Can you please let me know what I did wrong? The following shows my attempt: - Add a new input parameter to 'new Browser' function call in the index.html: o var b = new Browser({ o gbrowseLink: "http://serverABC/cgi-bin/gbrowse/chrm1", o containerID: "GenomeBrowser", o ...... - Add the following bits to just before the "if (params.bookmark)" in the "Browser.prototype.createNavBox" function in the Browser.js file: o if (params.gbrowseLink) { o this.link = document.createElement("a"); o this.link.appendChild(document.createTextNode("View in gbrowse")); o this.link.href = params.gbrowseLink; o this.link.style.cssText = "float: right; clear"; o navbox.appendChild(this.link); o } o o navbox.appendChild(document.createTextNode("\u00a0\u00a0\u00a0\u00a0")); o By doing this, I could get the link 'View in gbrowse' next to the original link, however, they are placed next to each other without spacing.... What should be the proper way to add an extra customizable link to the jbrowser? Thanks a lot. Regards, Kenneth --------------------------------------------------------------------------------------------------------- This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of "Viruses" or other "Malware". Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment. --------------------------------------------------------------------------------------------------------- |