Re: Javascript causing Ajax form to submit, but not all ajaxy like I want
Nate, what I meant was that I couldn't get it working ONLY using cake's ajax helper. I used raw prototype code. I understand cake has an ajax helper, I have utilized it for other things, I just couldn't getting it to work for this one. On Oct 8, 8:53 pm, Nate <[EMAIL PROTECTED]> wrote: > http://book.cakephp.org/view/208/AJAX > > And I quote: > "The AjaxHelper utilizes the ever-popular Prototype and > script.aculo.us libraries for Ajax operations and client side > effects." > > On Oct 8, 7:40 pm, Chez17 <[EMAIL PROTECTED]> wrote: > > > In case anyone wants to know. I did get this to work but I had to use > > the prototype library and javascript. I couldn't get it working within > > cakes own features. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Javascript causing Ajax form to submit, but not all ajaxy like I want
http://book.cakephp.org/view/208/AJAX And I quote: "The AjaxHelper utilizes the ever-popular Prototype and script.aculo.us libraries for Ajax operations and client side effects." On Oct 8, 7:40 pm, Chez17 <[EMAIL PROTECTED]> wrote: > In case anyone wants to know. I did get this to work but I had to use > the prototype library and javascript. I couldn't get it working within > cakes own features. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Javascript causing Ajax form to submit, but not all ajaxy like I want
In case anyone wants to know. I did get this to work but I had to use the prototype library and javascript. I couldn't get it working within cakes own features. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Javascript causing Ajax form to submit, but not all ajaxy like I want
I didn't know how else to describe it. Here's the code: form('addComment', 'post', array( 'model' => 'Comment', 'url' => array('controller' => 'comments', 'action' =>'add'), 'update' => 'pureGenius')); //echo $form->input('comment', array('rows' => '3')); ?> var flag = false; end('Talk'); ?> So basically I want it when someone types Shift+Enter in the text box it submits the form. If I use the submit button, the form submits all ajaxy in the proper way. However if I use the Shift+Enter method, the form submits, but not in the good ajax way, it reloads the page. Is there a seperate submit call for an ajax form? Also, I find that its impossible to name a form. The 'addComment' doesn't work. Neither does putting it in the array options. Anyone else find this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---