Re: form-create() ::: how can use onSubmit in form-create()

2007-12-15 Thread MrTufty
It WAS a huge disaster. I got involved with Cake at that point, and I almost gave it up because of the huge inaccuracies present in the Wiki. At any given point there were 3 or 4 suggestions on how to do each task, and 3 of them would be wrong somewhere along the line - but of course you wouldn't

form-create() ::: how can use onSubmit in form-create()

2007-12-14 Thread WordPress Guru
Hello , I have a form that I am creating with form-create() , but I dont want the form to be submitted as their is an ajax button in the form that will [hopefully] submit the form. So I want to use onSubmit=return false; to stop the form from submitting. I have tried the following, that does

Re: form-create() ::: how can use onSubmit in form-create()

2007-12-14 Thread grigri
$form-create('Model', array('url' = '...', 'default' = false)); generates your form tag with onSubmit=event.returnValue = false; return false;, which is what you need On Dec 14, 2:15 pm, WordPress Guru [EMAIL PROTECTED] wrote: Hello , I have a form that I am creating with form-create() , but

Re: form-create() ::: how can use onSubmit in form-create()

2007-12-14 Thread WordPress Guru
Thanks and it works. Just one more thing. I am totally frustrated with the documentation available at api.cakephp.org . Do you guys have some other resource to look to ? On Dec 14, 10:41 am, grigri [EMAIL PROTECTED] wrote: $form-create('Model', array('url' = '...', 'default' = false));

Re: form-create() ::: how can use onSubmit in form-create()

2007-12-14 Thread grigri
Not really, sorry. There are quite a few blogs with interesting info, and the bakery sometimes has good articles. I can provide links, but they are pretty easy to find. I just browse the source code and glean what I can. I also check the trac changesets regularly - sometimes they'll detail a

Re: form-create() ::: how can use onSubmit in form-create()

2007-12-14 Thread Chris Hartjes
On Dec 14, 2007 10:35 AM, WordPress Guru [EMAIL PROTECTED] wrote: Thanks and it works. Just one more thing. I am totally frustrated with the documentation available at api.cakephp.org . Do you guys have some other resource to look to ? Well, api.cakephp.org is, well, documentation on the

Re: form-create() ::: how can use onSubmit in form-create()

2007-12-14 Thread WordPress Guru
Thanks Chris, and grigri I understand the differnce between a manual and I think the purpose of any good document is to at least inform the reader about the parameters of any method. The api is so poorly documented that in most case it does not tell in any detail about the parameters. For

Re: form-create() ::: how can use onSubmit in form-create()

2007-12-14 Thread Chris Hartjes
On Dec 14, 2007 1:06 PM, WordPress Guru [EMAIL PROTECTED] wrote: Thanks Chris, and grigri I understand the differnce between a manual and I think the purpose of any good document is to at least inform the reader about the parameters of any method. The api is so poorly documented that in