Browse Source

added eval call in ajax function for testing purpose

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

+ 2
- 2
scripts/haltestellen.js View File

@ -35,7 +35,7 @@ function ajaxCall(dataUrl, outputElement, callback) {
if(request.readyState === 4 && request.status === 200) {
//save ajax response
var response = request.responseText;
var response = eval(request.responseText);
// check if callback is a function
if(typeof callback === "function") {
@ -56,7 +56,7 @@ function ajaxCall(dataUrl, outputElement, callback) {
console.log("anonymous function");
var wurst = [["13","Prohlis","754"],["13","Prohlis","754"],["13","Prohlis","754"],["13","Prohlis","754"]];
console.log(wurst.length);
console.log(wurst[0][0]);
// get the search form
var searchForm = document.getElementById("search-form");


Loading…
Cancel
Save