key=pair within the URL will always be GET parameter, no matter what
you do or what you use ($.post, $.get, $.ajax, $.load, etc.)
POST has nothing to do with the URL.
On Jan 31, 2:26 am, Mark Livingstone namematters...@msn.com wrote:
ah, I thought that { key : pair } was just a replacement
You want to use POST, but you are sending your data as GET (without
url encoding).
So I'm pretty sure it cuts before #, because # is a non-alphanumeric
character and you haven't urlencoded your data.
Data in URL = GET, not POST, even if you are using $.post .
http://docs.jquery.com/Post
So
Thanks, Beres.
I am reading this order_message from a DIV. How do I 'POST' it? By
using form?
Also, to url encode... do I use escape()?
On Jan 30, 3:08 am, Beres Botond boton...@gmail.com wrote:
You want to use POST, but you are sending your data as GET (without
url encoding).
So I'm
As shown in the docs (link I gave you), it should work
$.post(order_send_email.php,
{order_message : order_message}, // {key : variable}
function(data)
{
alert(data);
// do something
});
On Jan 30, 4:03 pm, Mark Livingstone
ah, I thought that { key : pair } was just a replacement for
key=pair...
On Jan 30, 2:25 pm, Beres Botond boton...@gmail.com wrote:
As shown in the docs (link I gave you), it should work
$.post(order_send_email.php,
{order_message : order_message}, // {key : variable}
5 matches
Mail list logo