House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  Ajax

Sending paragraphs with CR/LF

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hey all,
skip evans
06/05/07 02:28 A
Thanks James,
skip evans
06/05/07 04:42 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
skip evans
06/05/2007 02:28 AM

Hey all, I know this is really basic, but I'm fairly new to JavaScript and am having trouble locating the best way to send data, paragraphs mostly, that contain CR/LF characters. I read up on the escape function, but when I send an escaped URL to my server it can't find the PHP script I am trying to execute, even though it does find it when it is not escaped. What is the best way to do this? Also, should POST be used instead of GET because of the amount of data in paragraphs, in addition to the security concerns? Thanks! Skip

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Holmes
06/05/2007 02:35 AM

Post the info, which will mean that you can just escape the data and not the URL (plus the other two benefits you just mentioned). ----- Excess quoted text cut - see Original Post for more ----- -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
skip evans
06/05/2007 02:44 AM

So you can't escape just the data with GET? James Holmes wrote: ----- Excess quoted text cut - see Original Post for more ----- -- Skip Evans Big Sky Penguin 61 W Broadway Butte, Montana 59701 =-=-=-=-=-=-=-=-=-=- Check out PHPenguin, a versatile and lightweight code base for developing PHP/MySQL applications. phpenguin.bigksypenguin.com

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
skip evans
06/05/2007 02:50 AM

I did an escape on the data and then sent it with the current function I have that uses GET, not POST, and it seems to work. Is this a suitable solution, or should I convert to sending with POST? Isn't post capable of sending more data than GET, in addition to being more secure? Thanks! Skip skip evans wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Holmes
06/05/2007 03:06 AM

A POST can definitely send more data. It's only more secure in that your data isn't written in the URL where people might bookmark it (which isn't really an issue with AJAX calls). ----- Excess quoted text cut - see Original Post for more ----- -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
skip evans
06/05/2007 04:42 AM

Thanks James, I should probably switch to POST eventually, but for now to keep development rolling I'll leave it passing via GET or now. Skip James Holmes wrote: ----- Excess quoted text cut - see Original Post for more ----- -- Skip Evans Big Sky Penguin 61 W Broadway Butte, Montana 59701 =-=-=-=-=-=-=-=-=-=- Check out PHPenguin, a versatile and lightweight code base for developing PHP/MySQL applications. phpenguin.bigksypenguin.com


<< Previous Thread Today's Threads Next Thread >>

Search ajax

May 24, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference