Browse Source

removed useless header, removed decodeHTML() in ajax response read

master
T. Meissner 12 years ago
parent
commit
a234a02826
1 changed files with 2 additions and 12 deletions
  1. +2
    -12
      dvb-app/scripts/haltestellen.js

+ 2
- 12
dvb-app/scripts/haltestellen.js View File

@ -1,13 +1,3 @@
/**
* Created with JetBrains WebStorm.
* User: torstenmeissner
* Date: 24.02.13
* Time: 22:38
* To change this template use File | Settings | File Templates.
*/
// server url // server url
var serverUrl = "http://widgets.vvo-online.de/abfahrtsmonitor/"; var serverUrl = "http://widgets.vvo-online.de/abfahrtsmonitor/";
@ -44,7 +34,7 @@ function ajaxCall(dataUrl, outputElement, callback) {
if(request.readyState === 4 && request.status === 200) { if(request.readyState === 4 && request.status === 200) {
//save ajax response //save ajax response
var response = decodeHTML(request.responseText);
var response = request.responseText;
// check if callback is a function // check if callback is a function
if(typeof callback === "function") { if(typeof callback === "function") {
@ -93,4 +83,4 @@ function ajaxCall(dataUrl, outputElement, callback) {
//event listeners //event listeners
searchForm.addEventListener("submit", haltestelle.getInfo, false); searchForm.addEventListener("submit", haltestelle.getInfo, false);
})(); // end of anonymous function
})(); // end of anonymous function

Loading…
Cancel
Save