[FX.php List] POSTing via Ajax to FX.php loses the newline chars--where?

Derrick Fogle derrick at fogles.net
Thu Mar 8 10:29:50 MST 2007


Convert the \n to \r just before sending the data to the database. In  
my experience, FX.php only turns \r into Pilcrows in Filemaker, not  
\n. But... it seems to output \n for pilcrows, instead of \r.

On Mar 8, 2007, at 10:55 AM, Gjermund Gusland Thorsen wrote:

> \n will be overridden in Safari, but not FireFox, is my experience.
>
> a bug in Safari perhaps? At least this bug affects <textarea> element
>
> ggt667
>
> On 3/8/07, Carl Anderson <Carl.Anderson at asu.edu> wrote:
>> I've got a very simple Dashboard widget project (using FX.php on  
>> the back
>> end) going, and I'm having trouble figuring out where in the  
>> process my
>> error is occurring.
>>
>> Essentially the widget is using Ajax to POST some text, possibly  
>> with line
>> breaks (or blank lines between paragraphs) to a PHP page, where  
>> FX.php takes
>> that info and inserts it into the database.  The trouble is that  
>> at some
>> step of the process the \n characters are getting lost, so:
>>
>> Test
>> Test
>> Test
>>
>> becomes "TestTestTest" in the actual database.
>>
>> I know many of you are using Ajax implementations, based on the  
>> discussion
>> recently, so I thought there might be someone who can shed some  
>> light on
>> things and point me in the right direction.
>>
>> I've got a sharp-minded colleague assisting, but we're both a bit
>> stumped...at least I know I am!
>>
>> Any and all assistance would be appreciated, even if it's just to  
>> tell me
>> that it's the Ajax problem and not FX.php.  (Even if you could  
>> give me a
>> workaround, I'd be happy!)
>>
>> --
>> Carl Anderson
>> Technical Support Analyst
>> Distance Learning
>> Herberger College of the Arts
>> Arizona State University
>> http://herbergeronline.asu.edu
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list


Derrick Fogle
derrick at fogles.net





More information about the FX.php_List mailing list