AJAX-submitted textarea problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

AJAX-submitted textarea problem

Sebastian Nozzi-2
Dear Seasiders,

I think I might have found a bug (?). Anyway, it's something I didn't expect.

When submitting a textarea normally (that is via submit button,
without AJAX) the newlines reach my Smalltalk code as CR+LF. So far so
good. When I submit that form using AJAX (Scriptaculous, using "html
updater... ; triggerForm: formName") the newlines in the String appear
as LF+LF.

I am using Safari on MacOS-X, Seaside 2.8.3.572, Scriptaculous
2.8.3.242 from Damien's sq3.10.2-7179web08.11.1 image.

Sorry if this has been brought up before.

Thanks a lot!

Sebastian

P.S. Is there a quick way to replace that two-character sequence in
the String until that gets fixed? (or not).
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: AJAX-submitted textarea problem

Sebastian Sastre-2
Are you using utf or iso?
Cheers,
Sebastian


> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Sebastian Nozzi
> Enviado el: Sunday, February 01, 2009 17:54
> Para: [hidden email]
> Asunto: [Seaside] AJAX-submitted textarea problem
>
> Dear Seasiders,
>
> I think I might have found a bug (?). Anyway, it's something
> I didn't expect.
>
> When submitting a textarea normally (that is via submit button,
> without AJAX) the newlines reach my Smalltalk code as CR+LF. So far so
> good. When I submit that form using AJAX (Scriptaculous, using "html
> updater... ; triggerForm: formName") the newlines in the String appear
> as LF+LF.
>
> I am using Safari on MacOS-X, Seaside 2.8.3.572, Scriptaculous
> 2.8.3.242 from Damien's sq3.10.2-7179web08.11.1 image.
>
> Sorry if this has been brought up before.
>
> Thanks a lot!
>
> Sebastian
>
> P.S. Is there a quick way to replace that two-character sequence in
> the String until that gets fixed? (or not).
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: AJAX-submitted textarea problem

Sebastian Nozzi-2
Appearently uft... from the HTML source code:

<meta http-equiv="Content-Type" content="text/html;charset=utf-8;
charset=utf-8"/>


2009/2/1 Sebastian Sastre <[hidden email]>:
> Are you using utf or iso?
> Cheers,
> Sebastian
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: AJAX-submitted textarea problem

Sebastian Sastre-2
Your problem does not happen with other UA's?
Do you know if it happens with other versions of safari?
Che,rs
Sebastian

> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Sebastian Nozzi
> Enviado el: Tuesday, February 03, 2009 10:17
> Para: [hidden email]
> Asunto: Re: [Seaside] AJAX-submitted textarea problem
>
> Appearently uft... from the HTML source code:
>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8;
> charset=utf-8"/>
>
>
> 2009/2/1 Sebastian Sastre <[hidden email]>:
> > Are you using utf or iso?
> > Cheers,
> > Sebastian
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: AJAX-submitted textarea problem

Sebastian Nozzi-2
It doesn't seem limited to Safari+OSX.
Right now I am working on Windows XP using Firefox. Same problem.

As a workaround, I'm detecting strings without CR (it comes only with
LF if sent through AJAX) and converting the LFs to CR+LFs.


2009/2/3 Sebastian Sastre <[hidden email]>:

> Your problem does not happen with other UA's?
> Do you know if it happens with other versions of safari?
> Che,rs
> Sebastian
>
>> -----Mensaje original-----
>> De: [hidden email]
>> [mailto:[hidden email]] En nombre
>> de Sebastian Nozzi
>> Enviado el: Tuesday, February 03, 2009 10:17
>> Para: [hidden email]
>> Asunto: Re: [Seaside] AJAX-submitted textarea problem
>>
>> Appearently uft... from the HTML source code:
>>
>> <meta http-equiv="Content-Type" content="text/html;charset=utf-8;
>> charset=utf-8"/>
>>
>>
>> 2009/2/1 Sebastian Sastre <[hidden email]>:
>> > Are you using utf or iso?
>> > Cheers,
>> > Sebastian
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: AJAX-submitted textarea problem

Sebastian Sastre-2
Hi, I'm observing that too but does not seems to be much of a problem for the app (it's well displayed when is rendered back).
Cheers,
Sebastian

> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Sebastian Nozzi
> Enviado el: Tuesday, February 03, 2009 10:54
> Para: [hidden email]
> Asunto: Re: [Seaside] AJAX-submitted textarea problem
>
> It doesn't seem limited to Safari+OSX.
> Right now I am working on Windows XP using Firefox. Same problem.
>
> As a workaround, I'm detecting strings without CR (it comes only with
> LF if sent through AJAX) and converting the LFs to CR+LFs.
>
>
> 2009/2/3 Sebastian Sastre <[hidden email]>:
> > Your problem does not happen with other UA's?
> > Do you know if it happens with other versions of safari?
> > Che,rs
> > Sebastian
> >
> >> -----Mensaje original-----
> >> De: [hidden email]
> >> [mailto:[hidden email]] En nombre
> >> de Sebastian Nozzi
> >> Enviado el: Tuesday, February 03, 2009 10:17
> >> Para: [hidden email]
> >> Asunto: Re: [Seaside] AJAX-submitted textarea problem
> >>
> >> Appearently uft... from the HTML source code:
> >>
> >> <meta http-equiv="Content-Type" content="text/html;charset=utf-8;
> >> charset=utf-8"/>
> >>
> >>
> >> 2009/2/1 Sebastian Sastre <[hidden email]>:
> >> > Are you using utf or iso?
> >> > Cheers,
> >> > Sebastian
> >> _______________________________________________
> >> seaside mailing list
> >> [hidden email]
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside