Side navigation
#377 closed enhancement (fixed)
Opened November 10, 2006 05:18PM UTC
Closed November 11, 2006 12:11PM UTC
Last modified June 20, 2007 03:20AM UTC
Auto-convert data in $.ajax if passed as object other then string
Reported by: | joern | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ajax | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
There is hardly a case where the data passed to $.ajax is not converted via $.param. To prevent breaking existing code, the conversion could be applied when the data is not a string:
if (typeof data != 'string') data = jQuery.param(data)
With this addition, the conversion could be removed from both $.get and $.post.
Attachments (0)
Change History (1)
Changed November 11, 2006 12:11PM UTC by comment:1
resolution: | → fixed |
---|---|
status: | new → closed |
Fixed in SVN.