This is exactly the same problem I am having as well.

Even with the form's zone attribute set, form.submit() still does not
trigger a form submission in which Request.isXHR() returns true.

I'd love to see an answer to this one.

Levi


Inge Solvoll wrote:
> 
> Form component has a zone parameter. Use that, and the form will be
> submitted with AJAX.
> 
> 2009/8/18 sohu <zebra...@sohu.com>
> 
>> if like this:
>> var myAjax = new Ajax.Request("poicenter.form", {
>>   method :'post',
>>   parameters :"c=c",
>>   onComplete :null
>>  });
>> tomcat will throw exception:Forms require that the request method be POST
>> and that the t:formdata query parameter have values.
>>
>> if I just submit like this: form.submit(). Then isXHR() will return false
>> and zone will not be update.
>>
>> any advise?
>> 2009-08-18
>>
>>
>>
>> sohu
>>
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/How-to-submit-in-javascript-to-update-zone--tp3464147p3467160.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to