Browse Source

use the encodeURI() function to encode the url string

master
T. Meissner 12 years ago
parent
commit
5bec3ef086
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      scripts/haltestellen.js

+ 1
- 1
scripts/haltestellen.js View File

@ -89,7 +89,7 @@ function ajaxCall(dataUrl, outputElement, callback, responseType) {
var target = document.getElementById("output"); var target = document.getElementById("output");
var hstName = document.getElementById("q").value; var hstName = document.getElementById("q").value;
//var hstUrl = serverUrl + "Abfahrten.do?ort=dresden&hst=" + hstName; //var hstUrl = serverUrl + "Abfahrten.do?ort=dresden&hst=" + hstName;
var hstUrl = serverUrl + "abfahrtsmonitor.py?ort=dresden&hst=" + hstName;
var hstUrl = encodeURI(serverUrl + "abfahrtsmonitor.py?ort=dresden&hst=" + hstName);
ajaxCall(hstUrl, target, function(data) { ajaxCall(hstUrl, target, function(data) {


Loading…
Cancel
Save