Mercurial > hg > LGServer
comparison src/main/webapp/resources/js/general.js @ 8:10b6e9d96d59
Changing the URL of the extraction interface.
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Tue, 17 Mar 2015 10:51:19 +0100 |
parents | 7682c04c63a8 |
children |
comparison
equal
deleted
inserted
replaced
7:dece72e97c65 | 8:10b6e9d96d59 |
---|---|
6 bookName, | 6 bookName, |
7 userId, extractionInterfaceUrl){ | 7 userId, extractionInterfaceUrl){ |
8 | 8 |
9 var form = document.createElement("form"); | 9 var form = document.createElement("form"); |
10 form.setAttribute("method", "post"); | 10 form.setAttribute("method", "post"); |
11 form.setAttribute("action", extractionInterfaceUrl + "/develop/Extractapp/TaggingText"); // hand to controller | 11 form.setAttribute("action", extractionInterfaceUrl + "/Extractapp/TaggingText"); // hand to controller |
12 form.setAttribute("target", "_blank"); | 12 form.setAttribute("target", "_blank"); |
13 | 13 |
14 | 14 |
15 var hiddenField0 = document.createElement("input"); | 15 var hiddenField0 = document.createElement("input"); |
16 hiddenField0.setAttribute("name", "branchId"); | 16 hiddenField0.setAttribute("name", "branchId"); |
59 | 59 |
60 function sectionInExtractionInterface(sectionId, sectionName, bookId, bookName, userId, extractionInterfaceUrl){ | 60 function sectionInExtractionInterface(sectionId, sectionName, bookId, bookName, userId, extractionInterfaceUrl){ |
61 | 61 |
62 var form = document.createElement("form"); | 62 var form = document.createElement("form"); |
63 form.setAttribute("method", "post"); | 63 form.setAttribute("method", "post"); |
64 form.setAttribute("action", extractionInterfaceUrl + "/develop/Extractapp/TaggingText"); // hand to controller | 64 form.setAttribute("action", extractionInterfaceUrl + "/Extractapp/TaggingText"); // hand to controller |
65 form.setAttribute("target", "_blank"); | 65 form.setAttribute("target", "_blank"); |
66 | 66 |
67 var hiddenField2 = document.createElement("input"); | 67 var hiddenField2 = document.createElement("input"); |
68 hiddenField2.setAttribute("name", "userId"); | 68 hiddenField2.setAttribute("name", "userId"); |
69 hiddenField2.setAttribute("value", userId); | 69 hiddenField2.setAttribute("value", userId); |