|
Mailing Lists
|
Home /
Groups /
Ajax
Sending paragraphs with CR/LF
Hey all,skip evans 06/05/07 02:28 A Post the info, which will mean that you can just escape the data andJames Holmes 06/05/07 02:35 A So you can't escape just the data with GET?skip evans 06/05/07 02:44 A I did an escape on the data and then sent it with theskip evans 06/05/07 02:50 A A POST can definitely send more data. It's only more secure in thatJames Holmes 06/05/07 03:06 A Thanks James,skip evans 06/05/07 04:42 A 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 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/ 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 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 ----- 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/ 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
|
May 24, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||