[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-31 Thread Beres Botond
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

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread Beres Botond
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

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread Mark Livingstone
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

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread Beres Botond
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

[jQuery] Re: Using $_POST to transmit large key/pair

2009-01-30 Thread 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}