Hello,

indeed something wrong here:
var response = eval("(" + request.responseText + ")");

You should just use:
var response = eval(request.responseText);

Also I hope that you have right response for that 'for loop' to work.

Cheers

On Sep 28, 2:21 pm, uncleroxk <[EMAIL PROTECTED]> wrote:
> Hi, i have a problem with this ajax oncomplete callback function, it
> works with firefox but not in internet explorer.. i tried to debug
> with firebug, everythings seems ok until this line of code..
>
> var response = eval("(" + request.responseText + ")"); //i suspect
> something wrong in here
>
> //callback function
> function loadcomplete(request)
> {
> var arrlast=new Array();
> var response = eval("(" + request.responseText + ")");   //i suspect
> something wrong here..
>                 for(i=0; i< response.messages.message.length; i++) {
>                         var post = '<tr><td><span class="post"
> id="'+response.messages.message[i].id+'"></span><span
> class="date">'+response.messages.message[i].time+'</span><p><span
> class="username">'+response.messages.message[i].user+': </
> span>'+response.messages.message[i].text+'</p><hr/></td></tr>';
>                         $('display').innerHTML = post + 
> $('display').innerHTML;
>                 }
>
> }
>
> //an example of my Json
> {"messages": {"message":[ {"id":  "75",
>
>                                         "user": "name",
>
>                                         "text": "message",
>
>                                         "time": "Sun, 28  Sep, 08:19 PM"
>
>                                 },]}}
>
> thanks.. =)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to