Hello - thanks for the post but i dont see how your method helps with
my submitting the form via javascript.

Doesnt this just create submit button that performs an ajax form
postback? I need to be able to submit an ajax form via using
javascript.

Any ideas, or am I missing something in your solution?

Thanks





On Apr 20, 6:53 pm, gerbenzomp <[EMAIL PROTECTED]> wrote:
> I vaguely remember your approach could cause some issues
>
> Try this approach:
>
> <form onsubmit="return false;">
>
> // your form fields here
>
> <?php
>             if (!isset($complete)) $complete = '';
>             $options = array(
>                 'url'       => '/test/controls',
>                 'update'    => 'controls');
>             echo $ajax->submit('Save', $options);
>             ?>
> </form>
>
> Gerben.
>
> On 20 apr, 06:06, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > I have an ajax form that i want to submit using javascript. I created
> > a input button that onclick submits my form. When i use this method
> > (button test1) firefox freezes/crashes. If i click the normal submit
> > button, everything works as expected.
>
> > Why cant i submit the ajax form via javascript? Is there a work
> > around.
>
> > Below is what my code looks like.
>
> > <?php echo $ajax->form( '/test/controls',
> >     'POST',
> >     array(  'update' => 'controls',
> >                'name' => 'controls_form')) ?>
>
> > <input type="button" value="test1" onclick="this.form.submit();"/>
>
> > <input type="submit" value="test2"/>
> > </form>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to