[Catalyst] Prototype help
alan.humphrey at comcast.net
Mon Jul 25 21:51:56 CEST 2005
Thanks for the tip! SACK is very easy to use, very lightweight.
From: catalyst-bounces at lists.rawmode.org
[mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of samwyse
Sent: Monday, July 25, 2005 9:49 AM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Prototype help
On 7/25/05, Alan Humphrey <alan.humphrey at comcast.net> wrote:
> All -
> This list has been a lifesaver in the past, I'm hoping it can come through
> again. I'm trying to use Prototype/Ajax and I'm running into a brick
> Here's the (simplified) scenario:
> User comes to a page with a form with two entry fields. One field is
> the other is Title.
> User enters an ISBN. On tabbing out of the field we do a look up to see
> the ISBN is already on file.
> If the ISBN is on file we return the title and display it in the Title
> field. Otherwise we display a message above the title field asking for
> After making changes/additions the user pressing the "save" button and the
> form is processed normally, saving the data to the database.
> out how to declare a JS function and get it called from an 'onchange'
> So far so good. My function extracts the current ISBN value from the
> 1 - How do I get that value passed to the server?
> 2 - What does my server function have to do to return data?
> 3 - How do I define the callback to deal with the returned
> I see function names in Prototype that look promising, e.g.
> update_element_function, but I haven't been able to figure out how to
> them all together to get the job done.
> Pointers, help, advice - all are welcome!
HTML::Prototype is certainly one way to go, but if you are looking for
something simpler you can also try SACK:
More information about the Catalyst