[Proto-Scripty] Re: Ajax Issue

2010-01-12 Thread Sanil Music
I use instead of amp;, but I don't know why you can't see it here. For you Cowder, that I wanted a Ajax Request like that, I would use it. I want something else. As in my code, I want to create a one function for all ajax requests. So, I just call that function, and in it I define callback

[Proto-Scripty] Re: Ajax Issue

2010-01-12 Thread david
Hi Sanil Music, What TJ (it's not CORWDER) want to explain is that you can't do what you're trying to do or use the ajax request in synchronous mode . In execution mode, the JS thread in the browser will execurt the AJAX.Request, and continue like if nothing was done by this function. There is

[Proto-Scripty] Re: Ajax Issue

2010-01-11 Thread T.J. Crowder
Hi, There are several issues with that JavaScript code (I can't comment on the PHP). Two of the main issues: * You're checking the return value from a function (`ajaxRequest`) that you never return a value from. That means that the value you're checking is `undefined`, which is falsey, and so

[Proto-Scripty] Re: Ajax Issue

2010-01-11 Thread ColinFine
Also, do you really mean to have amp; in your querystring?     if(!ajaxRequest('/chat.php?a=chat_postamp;m='+encodeURIComponent amp; is HTML escaped. I think you mean (an unescaped CGI separator). -- You received this message because you are subscribed to the Google Groups Prototype