[jQuery] load() and the params parameter
I am using the load() method and passing parameters and a callback function. However, if I pass null, undefined, or even an empty object to the params parameter, the server returns the HTML status code 412. Is it not possible to pass something empty for this parameter? I'm getting the value from a function call which is defined by outside developers, so I don't know what's going to be coming back. The developers may or may not want to pass parameters. I assumed that if they didn't want to pass anything, that they could just return an empty object.
My workaround, for now, is to just call load(url, callback) if the params I receive is empty. I'd rather not do this though. Is this a bug, or is this behavior as designed?
Thanks,
Brendan
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/