You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrew Wilcox <aw...@everage.ca> on 2006/08/18 20:53:24 UTC

AJAX and htmlarea

Hello everyone,

            I have a simple form with two widgets.  The first is an
htmlarea, and the second is a repeating text field.  When I add a new text
field, I can see that the page is being submitted twice: once as an AJAX
request, and once as a full form submit.  When I switch the htmlarea to a
textarea, the issue goes away. 

 

            Can anyone confirm that htmlarea does not support AJAX, and if
so, how can I work around this issue?

 

Thanks,

 

Andrew Wilcox


Re: AJAX and htmlarea

Posted by Antonio Gallardo <ag...@agssa.net>.
Hi Andrew,

Sorry for the late answer. Did you try the cocoon svn 2.1.x branch? it 
would be fine if you can provide a test case to reproduce this error. :-)

Best Regards,

Antonio Gallardo.

Andrew Wilcox escribió:
> Antonio,
> 	I can't find a test case which demonstrates this issue, however,
> here is another posting about the same issue from back in May that went
> unresolved:
>
> http://mail-archives.apache.org/mod_mbox/cocoon-users/200605.mbox/%3C447691B
> 4.7000200@webeprint.com%3E
>
> I can send you all of my files, but I think it might be easier to try and
> recreate it.  It can be recreated by creating a form that has an htmlarea
> and a repeater that uses AJAX to add a new widget.  I used HTTPLook to
> confirm that there were two calls back to the server.  Again, when I switch
> it to textarea, all works correctly.
>
> Thanks for helping out with this.
>
> Andrew Wilcox
>
> -----Original Message-----
> From: Antonio Gallardo [mailto:agallardo@agssa.net] 
> Sent: Friday, August 18, 2006 8:43 PM
> To: users@cocoon.apache.org
> Subject: Re: AJAX and htmlarea
>
> Andrew Wilcox escribió:
>   
>> Hello everyone,
>>
>>             I have a simple form with two widgets.  The first is an 
>> htmlarea, and the second is a repeating text field.  When I add a new 
>> text field, I can see that the page is being submitted twice: once as 
>> an AJAX request, and once as a full form submit.  When I switch the 
>> htmlarea to a textarea, the issue goes away.
>>
>>  
>>
>>             Can anyone confirm that htmlarea does not support AJAX, 
>> and if so, how can I work around this issue?
>>
>>  
>>
>> Thanks,
>>
>>  
>>
>> Andrew Wilcox
>>
>>     
> Hi Andrew,
>
> Would you provide a test case for this issue, perhaps you can point to a 
> sample in the cocoon zone?
>
> http://cocoon.zones.apache.org/demos/21branch/samples/
>
> Best Regards,
>
> Antonio Gallardo.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: AJAX and htmlarea

Posted by Andrew Wilcox <aw...@everage.ca>.
Antonio,
	I can't find a test case which demonstrates this issue, however,
here is another posting about the same issue from back in May that went
unresolved:

http://mail-archives.apache.org/mod_mbox/cocoon-users/200605.mbox/%3C447691B
4.7000200@webeprint.com%3E

I can send you all of my files, but I think it might be easier to try and
recreate it.  It can be recreated by creating a form that has an htmlarea
and a repeater that uses AJAX to add a new widget.  I used HTTPLook to
confirm that there were two calls back to the server.  Again, when I switch
it to textarea, all works correctly.

Thanks for helping out with this.

Andrew Wilcox

-----Original Message-----
From: Antonio Gallardo [mailto:agallardo@agssa.net] 
Sent: Friday, August 18, 2006 8:43 PM
To: users@cocoon.apache.org
Subject: Re: AJAX and htmlarea

Andrew Wilcox escribió:
>
> Hello everyone,
>
>             I have a simple form with two widgets.  The first is an 
> htmlarea, and the second is a repeating text field.  When I add a new 
> text field, I can see that the page is being submitted twice: once as 
> an AJAX request, and once as a full form submit.  When I switch the 
> htmlarea to a textarea, the issue goes away.
>
>  
>
>             Can anyone confirm that htmlarea does not support AJAX, 
> and if so, how can I work around this issue?
>
>  
>
> Thanks,
>
>  
>
> Andrew Wilcox
>
Hi Andrew,

Would you provide a test case for this issue, perhaps you can point to a 
sample in the cocoon zone?

http://cocoon.zones.apache.org/demos/21branch/samples/

Best Regards,

Antonio Gallardo.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: AJAX and htmlarea

Posted by Antonio Gallardo <ag...@agssa.net>.
Andrew Wilcox escribió:
>
> Hello everyone,
>
>             I have a simple form with two widgets.  The first is an 
> htmlarea, and the second is a repeating text field.  When I add a new 
> text field, I can see that the page is being submitted twice: once as 
> an AJAX request, and once as a full form submit.  When I switch the 
> htmlarea to a textarea, the issue goes away.
>
>  
>
>             Can anyone confirm that htmlarea does not support AJAX, 
> and if so, how can I work around this issue?
>
>  
>
> Thanks,
>
>  
>
> Andrew Wilcox
>
Hi Andrew,

Would you provide a test case for this issue, perhaps you can point to a 
sample in the cocoon zone?

http://cocoon.zones.apache.org/demos/21branch/samples/

Best Regards,

Antonio Gallardo.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org