|
@ -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
|