]> matita.cs.unibo.it Git - helm.git/commitdiff
Interface URL can now be setted using the control panel.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 10 Jun 2004 10:12:02 +0000 (10:12 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 10 Jun 2004 10:12:02 +0000 (10:12 +0000)
helm/on-line/javascript/prelude.js

index 530f9913f35e1a3461ad0e4bb783d5e7b0fe9bf4..8c60c6c08f144bbdb4fa01603c5b12d6070d1497 100644 (file)
@@ -33,6 +33,11 @@ function getRdflyURL()
   return document.rdflyURL.elements[0].value;
 }
 
+function getInterfaceURL()
+{
+  return document.interfaceURL.elements[0].value;
+}
+
 function getUNICODEvsSYMBOL()
 {
   if (document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[0].checked)
@@ -62,6 +67,7 @@ function getUpdateURL()
     '&param.draw_graphURL=' + escape(getDrawGraphURL()) +
     '&param.proofcheckerURL=' + escape(getProofCheckerURL()) +
     '&param.rdflyURL=' + escape(getRdflyURL()) +
+    '&param.interfaceURL=' + escape(getInterfaceURL()) +
     '&param.naturalLanguage=' + escape(getNaturalLanguage()) +
     '&param.uri_set_size=' + escape(getMaxGraphSize()) +
     '&param.UNICODEvsSYMBOL=' + escape(getUNICODEvsSYMBOL());
@@ -121,6 +127,15 @@ function selectRdflyURL(ss)
   }
 }
 
+function selectInterfaceURL(ss)
+{
+  if (ss.selectedIndex == 0) {
+    document.interfaceURL.elements[0].value = "";
+  } else {
+    document.interfaceURL.elements[0].value = "http://helm.cs.unibo.it/helm";
+  }
+}
+
 function selectProfile(ss, interfaceURL)
 {
   location = getUwoboURL() +