Re: prototype.js Ajax example?

Chris Roos
Mon, 25 Jul 2005 09:57:58 -0000

chuck Clark wrote:
> Hi,
>   I am trying to make my way through prototype.js, especially the Ajax
> funtions.
> I have very little experience with javascript, know php really well
> though, so i am having trouble with it.  I am making progress on all
> but the Ajax functions.
>   Does anyone have an example using them?
>
> I am following this ajax tutorial and trying to convert it to use
prototype.js
> http://www.sitepoint.com/article/remote-scripting-ajax
> code archive here
> http://www.sitepoint.com/examples/scripting/remotescriptexamples.zip
>
> He has two files receipt.php and example.xml . receipt.php determines
> if ''1234567'' is sent to it and returns the contents of
example.xml.
>
> I am looking for a simple example like that.
>
> Thanks for your help,
> Chuck

Hi Chuck,

Have you seen the Curt Hibbs articles at onlamp.com?  The first two take
you through building a Rails app while the third looks into the Ajax
capabilities of Rails.  It might be a good place to start if you
haven''t
seen it.  The third (ajax) article is here [1] and contains links to the
two previous articles.

Chris

[1] http://www.onlamp.com/pub/a/onlamp/2005/06/09/rails_ajax.html