Team:TU-Delft/SynBioData
From 2013.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | <table width="100%"> | ||
+ | <tr> | ||
+ | <td> | ||
+ | <div style="width:300px;border:1px solid #c0c0c0;text-align:center; padding:15px;background-color:#f0f0f0;"> | ||
+ | <b>First Semester Result Published</b><br/><br/> | ||
+ | Roll No: <input type="text" id="rollNum" onKeyUp="checkEnter(event.keyCode)"> | ||
+ | <input type="button" value="Show" onClick="showModalWindow(document.getElementById('rollNum').value)"> | ||
+ | </div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
- | |||
- | |||
- | |||
- | |||
- | + | <script language="JavaScript"> | |
- | + | var data; | |
- | + | function showModalWindow(data) | |
- | + | { | |
- | + | var url="https://docs.google.com/spreadsheet/tq?tqx=out:html&tq=select%20*%20where%20A%3D"+ data + "&key=0AgHK_Z79lrOmdEJ0ekd2aDhPbHBRT3BIX3FwRGRsYUE"; | |
- | + | window.showModalDialog(url,"","dialogWidth:500px; dialogHeight:80px;center:on;resizable: no "); | |
- | function | + | } |
- | + | function checkEnter(code){ | |
- | + | if(code==13){ | |
+ | showModalWindow(document.getElementById('rollNum').value); | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</script> | </script> | ||
</html> | </html> |
Revision as of 13:02, 2 September 2013