I also ran into this problem, and it was truly vexing. I was trying to
POST
to an XML file (dynamically generated by PHP), and the server didn't
allow
that so no POST vars were being received. Very glad I stumbled across
this
post, since otherwise I'd probably be hacking together a GET version
or
One consideration for using POST is that character set handling for
URLs is not always well defined, whereas the character set handling
for the post data is. For example, if I want to send stuff like Æ, Ø
or Å (norwegianl characters) on a URL, some servers expect ISO 8859,
whereas others expect
On Aug 20, 7:17 am, elygre [EMAIL PROTECTED] wrote:
One consideration for using POST is that character set handling for
URLs is not always well defined, whereas the character set handling
for the post data is. For example, if I want to send stuff like Æ, Ø
or Å (norwegianl characters) on a
Untested, but should work.
$.ajax({
type: POST,
url: /data/tags,
data: format=xhtml,
success: function(data){
$('#tags').html(data);
}
});
On 8/18/07, angelogladding [EMAIL PROTECTED] wrote:
When I attempt to load into a ul (#tags) jQuery seems to be sending a
`POST`
On Aug 19, 12:10 am, Pops [EMAIL PROTECTED] wrote:
The default is GET, however, if you pass the 2nd parameter as URL data
and not a function, then jQuery assumes a POST is desired. Studying
this seems odd. I can take a swag at the reasons:
- As a poor's man security consideration
The default is GET, however, if you pass the 2nd parameter as URL data
and not a function, then jQuery assumes a POST is desired. Studying
this seems odd. I can take a swag at the reasons:
- As a poor's man security consideration against ajax
injections. and
- If you are sending JSON
On Aug 18, 6:15 pm, Stephan Beal [EMAIL PROTECTED] wrote:
One of the negative side-effects is, however, that POST is not
configured consistently across servers. For example, i had the example
same problem as the OP... i was trying to load() an HTML file and it
worked on my local system.
Yes, a POST will be performed instead. I updated the docs to represent this:
http://docs.jquery.com/Ajax#load.28_url.2C_params.2C_callback_.29
--John
On 8/18/07, angelogladding [EMAIL PROTECTED] wrote:
When I attempt to load into a ul (#tags) jQuery seems to be sending a `POST`
request.
On Aug 18, 7:01 pm, John Resig [EMAIL PROTECTED] wrote:
Yes, a POST will be performed instead. I updated the docs to represent
this:http://docs.jquery.com/Ajax#load.28_url.2C_params.2C_callback_.29
John, I'm sure you read my recent new post regarding the DOC nit.
You need to add, correct
Right, that's because you're not supposed to pass in a string, you
pass in an options block. If you pass in a string it splits the string
up by character, which is not what you want.
--John
On 8/18/07, Pops [EMAIL PROTECTED] wrote:
On Aug 18, 7:01 pm, John Resig [EMAIL PROTECTED] wrote:
On Aug 19, 12:55 am, Pops [EMAIL PROTECTED] wrote:
What was you sending?
i wasn't sending anything - i just wanted to load the contents of an
HTML snippet file (not a complete/well-formed HTML document) into a
DIV.
We write our own web server and as such we conform to HTTP RFC
standards, and
On Aug 18, 7:17 pm, John Resig [EMAIL PROTECTED] wrote:
Right, that's because you're not supposed to pass in a string, you
pass in an options block. If you pass in a string it splits the string
up by character, which is not what you want.
Ok. I just tried it.
console.log($.param({k1:'v1',
On Aug 18, 7:19 pm, Stephan Beal [EMAIL PROTECTED] wrote:
On Aug 19, 12:55 am, Pops [EMAIL PROTECTED] wrote:
What was you sending?
i wasn't sending anything -
h, ok, but that should keep with GET if you are not passing
parameters.? No?
Apache can be configured to allow/disallow POST
13 matches
Mail list logo