]> matita.cs.unibo.it Git - helm.git/commitdiff
control.html, control.js: now commands replace the history, so that
authorLuca Padovani <luca.padovani@unito.it>
Fri, 6 Apr 2001 14:15:26 +0000 (14:15 +0000)
committerLuca Padovani <luca.padovani@unito.it>
Fri, 6 Apr 2001 14:15:26 +0000 (14:15 +0000)
the back button in the browser returns immediately to the
previous page (and not the previous command result)

helm/uwobo-panel/control.html
helm/uwobo-panel/control.js

index 91c2e071423793ea09786570ccd4d219935fa857..15f2a4223dfd51bf7b3923c11518eaa0d987d57a 100644 (file)
@@ -97,7 +97,7 @@ The following is the URL used to contact the UWOBO servlet. Note that the servle
     </td>
     <td>
       <form>
-        <input type="button" value="Check" onClick="top.result.location = getUwoboURL() + 'help'"/>
+        <input type="button" value="Check" onClick="top.result.location.replace(getUwoboURL() + 'help')"/>
       </form>
     </td>
   </tr>
@@ -136,7 +136,7 @@ running UWOBO and not your machine.
     </td>
     <td>
       <form>
-        <input type="button" value="Check" onClick="top.result.location = getGetterURL() + 'help'"/>
+        <input type="button" value="Check" onClick="top.result.location.replace(getGetterURL() + 'help')"/>
       </form>
     </td>
   </tr>
@@ -169,7 +169,7 @@ The following are commands to do some simple queries about the UWOBO servlet.
   </td>
 </tr>
 <tr>
-  <td><form><input type="button" value="Help" onClick="top.result.location = getUwoboURL() + 'help'"/></form></td>
+  <td><form><input type="button" value="Help" onClick="top.result.location.replace(getUwoboURL() + 'help')"/></form></td>
 </tr>
 <tr>
   <td>
@@ -177,7 +177,7 @@ The following are commands to do some simple queries about the UWOBO servlet.
   </td>
 </tr>
 <tr>
-  <td><form><input type="button" value="List Stylesheets" onClick="top.result.location = getUwoboURL() + 'list'"/></form></td>
+  <td><form><input type="button" value="List Stylesheets" onClick="top.result.location.replace(getUwoboURL() + 'list')"/></form></td>
 </tr>
 </table>
 
@@ -307,7 +307,7 @@ care, and remember that the servlet can be shared among different users:
   </td>
   <td>
     <form>
-      <input type="button" value="Reload All" onClick="top.result.location = getUwoboURL() + 'reload'"/>
+      <input type="button" value="Reload All" onClick="top.result.location.replace(getUwoboURL() + 'reload')"/>
     </form>
   </td>
 </tr>
index 258163f97e71395d721f5ad94a85b25b8ce1e1ee..def3da2be7db4b037c39e671a4e534ba706156c6 100644 (file)
@@ -103,22 +103,22 @@ function getStylesheetURL()
 
 function loadStylesheet()
 {
-  top.result.location = getUwoboURL() + "add?xsluri=" + getStylesheetURL() + "&key=" + document.stylesheetKey.elements[0].value;
+  top.result.location.replace(getUwoboURL() + "add?xsluri=" + getStylesheetURL() + "&key=" + document.stylesheetKey.elements[0].value);
 }
 
 function removeStylesheet()
 {
-  top.result.location = getUwoboURL() + "remove?key=" + document.stylesheetKey.elements[0].value;
+  top.result.location.replace(getUwoboURL() + "remove?key=" + document.stylesheetKey.elements[0].value);
 }
 
 function removeAllStylesheets()
 {
-  top.result.location = getUwoboURL() + "remove";
+  top.result.location.replace(getUwoboURL() + "remove");
 }
 
 function reloadStylesheet()
 {
-  top.result.location = getUwoboURL() + "reload?key=" + document.stylesheetKey.elements[0].value;
+  top.result.location.replace(getUwoboURL() + "reload?key=" + document.stylesheetKey.elements[0].value);
 }
 
 function loadAllPredefined()
@@ -182,5 +182,5 @@ function applyStylesheets()
         url += "&param." + paramList[i];
     }
   
-  top.result.location = url;
+  top.result.location.replace(url);
 }