source: extensions/net.sf.basedb.mev/trunk/resources/scripts/mev.jsp @ 1061

Last change on this file since 1061 was 1061, checked in by Nicklas Nordborg, 13 years ago

References #214: Move TDMS export to this extension

The new exporter is in place with some test code. Still needs a plug-in interface for this. Updated requirements to BASE 2.12.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 905 bytes
Line 
1<%@ page
2  pageEncoding="UTF-8"
3  session="false"
4  contentType="text/javascript"
5  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
6%>
7<%!
8  final String homeUrl = ExtensionsControl.getHomeUrl("net.sf.basedb.mev.launchmev");
9%>
10var MeV = new function()
11{
12  this.launch = function(bioAssaySetId)
13  {
14    var url = '<%=homeUrl%>/launch_mev.jsp';
15    url += '?ID='+getSessionId();
16    url += '&bioassayset_id=' + bioAssaySetId;
17    location.href = url;
18  }
19 
20  this.createTDMS = function(bioAssaySetId)
21  {
22    var url = '<%=homeUrl%>/launch_export.jsp';
23    url += '?ID='+getSessionId();
24    url += '&bioassayset_id=' + bioAssaySetId;
25    Main.openPopup(url, 'CreateTDMSFile', 400, 300);
26  }
27
28  this.testTDMS = function(bioAssaySetId)
29  {
30    var url = '<%=homeUrl%>/test.xjsp';
31    url += '?ID='+getSessionId();
32    url += '&bioassayset_id=' + bioAssaySetId;
33    Main.openPopup(url, 'TestCreateTDMSFile', 400, 300);
34  }
35
36}
37();
Note: See TracBrowser for help on using the repository browser.