You really need to read all of the prototype docs to get an idea of what to use. They don't have many code samples. At least they have decent docs now.

 - Aparajita

On Jul 19, 2007, at 12:02 PM, Steve Alex <[EMAIL PROTECTED]> wrote:


On Jul 19, 2007, at 8:50 AM, Aparajita Fishman wrote:

The problem is most likely in your Javascript code. To add a row to a table with prototype, you would do something like this:

// 1. make your Ajax request
// 2. Active4D code builds a complete table row (<tr><td>content</ td></tr>)
// 3. in your Ajax onSuccess callback, do this:

onSuccess: function(request)
{
  new Insertion.Bottom($('mytable'), request.responseText);
}

Thank you!

Works like a charm. Guess I need to read the Prototype documentation. Didn't see that in any of the examples I saw after a Google.

Steve Alex
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to