In the docs for .load, it has:

params (Object): (optional) A set of key/value pairs that will be sent
as data to the server.

That is not what I am seeing, the following

      $('#containerId').load("url","k1=v1&k2=v2");

The jQuery.js code at lin 1671:

      params = jQuery.param( params );
      type = "POST";

changes the key/value pairs to some strung out character by character
breakdown:

     0=k&1=1&2==&3=v&4=1&5=&&6=k&7=2&8==&9=v&10=2

The only way to send key/value pairs it to make part of the URL
parameter:

      $('#containerId').load("url?k1=v1&k2=v2");

I tried this in the firebug console:

console.log($.param("p1=v1"));

result: 0=p&1=1&2=%3D&3=v&4=1

Is this correct logic?

--
HLS

Reply via email to