source: Dev/branches/jQueryUI/client/js/old/menu.js @ 249

Last change on this file since 249 was 249, checked in by hendrikvanantwerpen, 13 years ago

This one's for Subversion, because it's so close...

First widget (stripped down sequencer).
Seperated client and server code in two direcotry trees.

File size: 991 bytes
Line 
1function loadSurvey()
2{
3    var form = document.getElementById('loadForm');
4    var select = document.getElementById('surveysToLoad');
5    var surveyUID = select.valueOf().value;
6   
7    if (surveyUID != '')
8    {
9        var surveyInput = document.createElement('input');
10        surveyInput.name = "UID";
11        surveyInput.value = surveyUID;
12        surveyInput.type = "hidden";
13
14        form.appendChild(surveyInput);
15
16        form.submit();
17    }
18}
19
20function loadApplication()
21{
22    var form = document.getElementById('loadApplicationForm');
23    var select = document.getElementById('applicationsToLoad');
24    var applicationUID = select.valueOf().value;
25   
26    if (applicationUID != '')
27    {
28        var applicationInput = document.createElement('input');
29        applicationInput.name = 'applicationUID';
30        applicationInput.value = applicationUID;
31        applicationInput.type = "hidden";
32       
33        form.appendChild(applicationInput);
34        form.submit();
35    }
36}
Note: See TracBrowser for help on using the repository browser.