Hello,
I have to develop some sample application that works with AJAX. (A
dropdown that adds results according to the letters you type)
I allready programmed a website in PHP with sessions etc. , but I
don't know if Ruby on Rails would be a better option to make the
sample application (which serves only as a sample, nothing more,
nothing less).
I have no experience with AJAX nor Ruby.
Regards,
Bart
On Feb 20, 2:00 pm, "Bart op de grote markt" <bartwar
@freegates.be>
wrote:
> Hello,
> I have to develop some sample application that works with AJAX. (A
> dropdown that adds results according to the letters you type)
> I allready programmed a website in PHP with sessions etc. , but I
> don't know if Ruby on Rails would be a better option to make the
> sample application (which serves only as a sample, nothing more,
> nothing less).
> I have no experience with AJAX nor Ruby.
There's no point learning RoR just to do a sample app that you may
well have to then do in PHP anyway. Just do it in PHP. In general,
AJAX sites are server language-independent. The concept is that some
javascript on the page makes a request to the server (which returns
normal html or json or whatever) than the javascript then interprets.
Thus, it is totally doable in PHP. The only thing you need to 'learn'
is how to do AJAX, and even then, the thing you're asking for is
already done in various packages. Scriptaculous has an autocomplete
dropdown thing, so you could at least learn form that, if not use it:
http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter Al
-----------------------------------------------Reply-----------------------------------------------
> There's no point learning RoR just to do a sample app that you may
> well have to then do in PHP anyway. Just do it in PHP. In general,
> AJAX sites are server language-independent. The concept is that some
> javascript on the page makes a request to the server (which returns
> normal html or json or whatever) than the javascript then interprets.
> Thus, it is totally doable in PHP. The only thing you need to 'learn'
> is how to do AJAX, and even then, the thing you're asking for is
> already done in various packages. Scriptaculous has an autocomplete
> dropdown thing, so you could at least learn form that, if not use it:http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter
> Al
Ok, then I go for PHP. Thanks for the useful information!
Grtz,
Bart