Ok this appears to be wroking

$('#form').submit();

Thanks so much

Cheers


On Mon, Jun 24, 2013 at 10:53 PM, Boris Horvat <horvat.z.bo...@gmail.com>wrote:

> By call I assume that you mean to use jquery to trigger an event?
>
> assuming that is what you meant then it wont work (or at least my code is
> not working)
>
> <script>
>             function trigger()            {
>                 $('#form').trigger('onsubmit');
>             }
> </script>
>
>
>      <t:zone t:id="zone">
>         <form t:id="form" t:type="form" t:zone="^">
>             <t:textfield t:value="value" onblur="trigger()"/>
>              <input t:type="submit" value="Save"/>
>         </form>
>
>         value: ${value} <br />
>     </t:zone>
>
>
> On Mon, Jun 24, 2013 at 10:44 PM, Lenny Primak <lpri...@hope.nyc.ny.us>wrote:
>
>> You can call onsubmit event exactly the same way you call submit now. It
>> should just work.
>>
>>
>>
>> On Jun 24, 2013, at 4:40 PM, Boris Horvat <horvat.z.bo...@gmail.com>
>> wrote:
>>
>> > Hi,
>> >
>> > How do you mean use onsubmit? That is an event, right?
>> >
>> > I want to submit a from vie ajax on blur event so I dont see how
>> onsubmit
>> > event will help me there :S
>> >
>> > Thanks :)
>> >
>> >
>> > On Mon, Jun 24, 2013 at 10:37 PM, Lenny Primak <lpri...@hope.nyc.ny.us
>> >wrote:
>> >
>> >> Use onsubmit() instead of submit. Untested but it should work.
>> >> Or look at how I do it in FlowLogix DisableAfterSubmit mixin
>> >>
>> >>
>> >>
>> >> On Jun 24, 2013, at 4:32 PM, Boris Horvat <horvat.z.bo...@gmail.com>
>> >> wrote:
>> >>
>> >>> Basically the code given bellow will throw an exception stating that
>> this
>> >>> is not an ajax request
>> >>>
>> >>>
>> >>>   <t:zone t:id="zone">
>> >>>       <form t:id="form" t:type="form" t:zone="^">
>> >>>           <t:textfield t:value="value" onblur="this.form.submit();"/>
>> >>>           <input t:type="submit" value="Save"/>
>> >>>       </form>
>> >>>
>> >>>       value: ${value} <br />
>> >>>   </t:zone>
>> >>>
>> >>> ---------------------------------------------------------
>> >>>
>> >>>   @Property
>> >>>   @Persist
>> >>>   private String value;
>> >>>   @InjectComponent
>> >>>   private Zone zone;
>> >>>
>> >>>   Object onSuccess() {
>> >>>       return zone.getBody();
>> >>>   }
>> >>> ----------------------------------------------
>> >>>
>> >>> Is there any way to submit a form using onblur event as ajax?
>> >>>
>> >>> Cheers
>> >>>
>> >>> --
>> >>> Sincerely
>> >>> *Boris Horvat*
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> >> For additional commands, e-mail: users-h...@tapestry.apache.org
>> >
>> >
>> > --
>> > Sincerely
>> > *Boris Horvat*
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>
>
> --
> Sincerely
> *Boris Horvat*
>



-- 
Sincerely
*Boris Horvat*

Reply via email to