Skip to main content

Bug Tracker

Side navigation

#13766 closed bug (duplicate)

Opened April 10, 2013 10:25PM UTC

Closed April 10, 2013 11:08PM UTC

jQuery.ajax is modifying the data value

Reported by: dawson.green@gmail.com Owned by: dawson.green@gmail.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

I stumbled across some odd behavior while using jquery-1.9.1.min.js. I am running some test post requests to verify my site is communicating with my server correctly. When testing some random data, I entered in "??" for one of the form fields and did a transmission.

Prior to calling jQuery.ajax, my data was of the form:

JSON.stringify({
    key1: 23,
    key2: 150,
    key3: "1234e",
    key4: "??",
    key5: false
});

The result of that code snippet was my argument for jQuery.ajax(). However, the data transmitted replaced key4's value with "jQuery1910034090394619852304_1365631018644". I am not quite sure why, but chrome's network tool under the developer tools confirms that the jQuery string was in the transmitted form data. I went back and tested this on a jquery-1.7.2 ajax call and confirmed that 1.7.2 did not have this problem.

I am uncertain how to include a jsfiddle with this considering that the failure is ajax related. If any further information is required, please let me know how I can try to provide it.

OS: Windows 7 (64-bit)

Browser: Chrome v24.0.1312.57

Attachments (0)
Change History (2)

Changed April 10, 2013 10:52PM UTC by m_gol comment:1

_comment0: Could you write the exact AJAX jQuery call you used when you experienced this behavior? I can't reproduce it. \ \ BTW, you should really update your Chrome, it's two versions behind the current one!1365634665313207
owner: → dawson.green@gmail.com
status: newpending

Could you write the exact AJAX jQuery call you used when you experienced this behavior? I can't reproduce it.

BTW, you should really update your Chrome, it's two major versions behind the current one!

Changed April 10, 2013 11:08PM UTC by jaubourg comment:2

resolution: → duplicate
status: pendingclosed

Duplicate of #8417.See the following comment: http://bugs.jquery.com/ticket/8417#comment:20