Response is sometimes not shown

Response is sometimes not shown

Hi all

I do an AJAX request and I have a problem with my response.
When I just choose some values out of some option boxes and the press "Search". I get back the following answer:

{"ForeName":["B\len4","Keriw"],
"SurName":["Regor","Blsiger"],
"UserName":["rosdferbehlen","karidbaldfiger"

],
"AdressId":[1,2],"AdressUserId":[1,2],
"AdressStreet":["Rodfgerstrasse 17","Roegtestrawsse"],
"AdressPlace"


:["Lostrf2","Onsdfgngen"],
"SuchResultatEndeId":[1,2],"Rueckmeldung":""}

and this answer is published on the website with the following code.





  1. for($i = 0, cnt = data.SuchResultatEndeId.length; i < cnt; i+=1) {
  2. $('<table id="'+ i +'"><tr><td>'+ data.ForeName[i] + '</td><td>'+ data.SurName[i] + '</td><td>'+ data.AdressStreet[i] + '</td><td>'+ data.AdressPlace[i] + '</td><td><a href="../profile/'+ data.UserName[i] + '">Profile</a></td></tr></table>').appendTo('#result')
  3. }

When I choose after the option boxes the "Load template" button and tick afterwards some radio buttons and press then the "Search" button:

The same answer is coming back from Firebug, but the result is not presented on the page. Has anybody a clue why sometimes the data is presented and sometimes not?

Thank you very much for your answer.

Cheers Roger