Re: HTML_AJAX next steps

From: Date: Mon, 18 Jul 2005 16:28:50 +0000
Subject: Re: HTML_AJAX next steps
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38693@lists.php.net to get a copy of this message
Luca Mariano wrote:
Hi Joushua, I'm a little unsure about the need to Objectize the javascript side... and the whole html_ajax2 seems to me more difficult to use that the previous code, and a bit more cumbersome. The big to me for OO Javascript is not poluting the namespace
Even when usign the auto_server features adding a single remote methods involves a great amount of code writing, both on the server side & on the client. Moreover, I modified my test page (divide two numbers) using the new implementation; on my notebook the whole cycle request-reponse (async mode) requires about 50 msecs; my previous implementation was only 5 msecs. I suspect this "slowness" due to the object prototype into JS, and the JSON encoding-decoding at every request; usually we don't need a JSON encoding of the data we send to the server, that's true? On the other hand, it seems that html_ajax2 is more well accepted from the community; if so I'll be ready to delete my proposal for html_ajax, so you can propose the new implementation - but you must be the first mantainer for this because it's your own stuff! Regards, Luca I would agree that the slowness is probally JSON encoding-decoding, the code is pretty much to the point where you can plug in any encoder-decoder (decoder support on javascript side and config need to be added), I'll try to get a plain text encoder setup soon.
-josh

« previous php.pear.dev (#38693) next »