Re: Adding table row with AJAX

2009-01-04 Thread brian
On Sat, Jan 3, 2009 at 11:15 PM, Steven Wright rhythmicde...@gmail.com wrote: Actually this works in place of the dummy file $this-autoRender = false; Yes, that's correct. The reason (AFAIK) that RequestHandler doesn't suppress that automatically is that one should use a .ctp file for the

Re: Adding table row with AJAX

2009-01-04 Thread brian
On Sat, Jan 3, 2009 at 9:43 AM, Steven Wright rhythmicde...@gmail.com wrote: Thanks for the reply. This is mostly working but there is something I am still missing. I tried two different things. 1) If I call the 'edit' action I get a jQuery error ( 'div is null' ' elem = jQuery.makeArray(

RE: Adding table row with AJAX

2009-01-04 Thread Steven Wright
: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of brian Sent: Sunday, January 04, 2009 3:01 AM To: cake-php@googlegroups.com Subject: Re: Adding table row with AJAX On Sat, Jan 3, 2009 at 11:15 PM, Steven Wright rhythmicde...@gmail.com wrote: Actually this works in place

RE: Adding table row with AJAX

2009-01-04 Thread Steven Wright
-...@googlegroups.com] On Behalf Of brian Sent: Sunday, January 04, 2009 3:04 AM To: cake-php@googlegroups.com Subject: Re: Adding table row with AJAX On Sat, Jan 3, 2009 at 9:43 AM, Steven Wright rhythmicde...@gmail.com wrote: Thanks for the reply. This is mostly working but there is something I am still

RE: Adding table row with AJAX

2009-01-04 Thread Steven Wright
: Sunday, January 04, 2009 3:01 AM To: cake-php@googlegroups.com Subject: Re: Adding table row with AJAX On Sat, Jan 3, 2009 at 11:15 PM, Steven Wright rhythmicde...@gmail.com wrote: Actually this works in place of the dummy file $this-autoRender = false; Yes, that's correct. The reason (AFAIK

RE: Adding table row with AJAX

2009-01-04 Thread Steven Wright
AM To: cake-php@googlegroups.com Subject: Re: Adding table row with AJAX On Sat, Jan 3, 2009 at 10:05 PM, Steven Wright rhythmicde...@gmail.com wrote: In addition, just to prove I am not a complete dope. I get how this works, just not with CakePHP. AJAX_TEST.PHP ?php $row_count

Re: Adding table row with AJAX

2009-01-04 Thread brian
On Sun, Jan 4, 2009 at 8:32 AM, Steven Wright rhythmicde...@gmail.com wrote: Still banging on this row problem. How do I get the content of an element from my controller so that I can echo it to the view? Is the completely wrong approach? What is the correct way to achieve this? What is it

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of brian Sent: Friday, January 02, 2009 8:26 PM To: cake-php@googlegroups.com Subject: Re: Adding table row with AJAX On Fri, Jan 2, 2009 at 7:45 PM, Steven Wright rhythmicde...@gmail.com wrote: Hi Adam, Thanks for writing back. How

Re: Adding table row with AJAX

2009-01-03 Thread rhythmicde...@gmail.com
Hi Brian, I was wondering if you had an answer to this issue I am having. I dont understand the error, or why the data is not appending. Thanks. On Jan 3, 9:43 am, Steven Wright rhythmicde...@gmail.com wrote: Thanks for the reply. This is mostly working but there is something I am still

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
] On Behalf Of rhythmicde...@gmail.com Sent: Saturday, January 03, 2009 9:45 PM To: CakePHP Subject: Re: Adding table row with AJAX Hi Brian, I was wondering if you had an answer to this issue I am having. I dont understand the error, or why the data is not appending. Thanks. On Jan 3, 9:43 am

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
. -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of rhythmicde...@gmail.com Sent: Saturday, January 03, 2009 9:45 PM To: CakePHP Subject: Re: Adding table row with AJAX Hi Brian, I was wondering if you had an answer to this issue I am

RE: Adding table row with AJAX

2009-01-03 Thread Steven Wright
Actually this works in place of the dummy file $this-autoRender = false; -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of rhythmicde...@gmail.com Sent: Saturday, January 03, 2009 9:45 PM To: CakePHP Subject: Re: Adding table row

Re: Adding table row with AJAX

2009-01-03 Thread brian
On Sat, Jan 3, 2009 at 10:05 PM, Steven Wright rhythmicde...@gmail.com wrote: In addition, just to prove I am not a complete dope. I get how this works, just not with CakePHP. AJAX_TEST.PHP ?php $row_count = ($_POST['row_count'] + 1); echo tr id=\row$row_count\tdContent for row

Re: Adding table row with AJAX

2009-01-02 Thread Adam Royle
It is my understanding that CakePHP is planning to migrate to jQuery in the near future (much like the rest of the world, even my grandmother, and she doesn't even have a computer!). I use jQuery to add an extra row by cloning the last row, incrementing the ids and names of the elements and

RE: Adding table row with AJAX

2009-01-02 Thread Steven Wright
Steve -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of Adam Royle Sent: Friday, January 02, 2009 7:09 PM To: CakePHP Subject: Re: Adding table row with AJAX It is my understanding that CakePHP is planning to migrate to jQuery

Re: Adding table row with AJAX

2009-01-02 Thread brian
On Fri, Jan 2, 2009 at 7:45 PM, Steven Wright rhythmicde...@gmail.com wrote: Hi Adam, Thanks for writing back. How would you get the data back for the row from CakePHP? My row contains four columns with the following inputs: amount [text] measurement_type [select] description [text]