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', k2: 'v2'}));

yields:

k1=v1&k2=v2

How obstrusive! <g>

Well, you don't think normal people are going to expect to use K/V
pairs as they know them today?"   IMV, that should be default, not the
exception. Even then, don't you think it is worth explaing this?  It
does say "Key/Value Pairs".

Anyway, if  this is the design, it might be a good idea to add this
important information in your docs. It will go a long way in reducing
your technical support cost. :-)

One suggestion is to have a dedicated section on data types and how
they passed to jQuery.  You would have a hyperlink to the term
"options block" that defines what that is.

Being Specific is Terrific!

--
HLS

Reply via email to