Ignore:
Timestamp:
May 29, 2009, 2:53:33 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #224: Add a "Test" button on the GenePattern? 'edit server' page

The "Test" button is now in place. The installation may still be a bit messy since the GenePattern? jar files has to be manually installed. We need a way to figure out what to do about that. Another problem is that the default configuration of a GenePattern? server allows a user to login with any username. Non-existing accounts are automatically created and given server admin permissions! It is possible to lock this down, but there is no web interface for adminitration of GenePattern? user accounts. There is some documentation about this: http://www.broad.mit.edu/cancer/software/genepattern/tutorial/gp_web_client.html#_Securing_the_Server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.genepattern/trunk/resources/edit_server.jsp

    r1102 r1104  
    8181    if (validate()) document.forms['options'].submit();
    8282  }
     83  function testServer()
     84  {
     85    if (!validate()) return;
     86    var frm = document.forms['options'];
     87    var url = '<%=homeUrl%>/TestServer.servlet';
     88    url += '?server=' + encodeURIComponent(frm.gpServer.value);
     89    url += '&login=' + encodeURIComponent(frm.gpLogin.value);
     90    url += '&password=' + encodeURIComponent(frm.gpPassword.value);
     91    Main.openPopup(url, 'TestGPServer', 700, 500);
     92  }
    8393  </script>
    8494</base:head>
     
    110120  <table align="center">
    111121  <tr>
    112     <td width="50%"><base:button onclick="saveSettings();" title="Save" /></td>
    113     <td width="50%"><base:button onclick="window.close();" title="Cancel" /></td>
     122    <td width="33%"><base:button onclick="testServer();" title="Test"
     123      image="<%=homeUrl + "/images/genepattern.gif" %>"
     124      onclick="testServer()" /></td>
     125    <td width="33%"><base:button onclick="saveSettings();" title="Save" /></td>
     126    <td width="33%"><base:button onclick="window.close();" title="Cancel" /></td>
    114127  </tr>
    115128  </table>
Note: See TracChangeset for help on using the changeset viewer.