Re: Ajax Pagination messed online, working offline on Mozilla Firefox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

As your browser says the error is "Content-Length missing for POST or PUT
requests"
you are missing the following heders(not sure if the first one is required
but the second one is a must)

      http_request.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
      http_request.setRequestHeader("Content-length", parameters.length);
      http_request.send(parameters);

and more over u have to send parameters(send(null) would do the job
for a "GET" request but not for a "POST" request).
if u want to call the script but do not want to send any parameters
use "GET" request instead.


[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux