Skip to main content

Bug Tracker

Side navigation

#8107 closed bug (fixed)

Opened January 31, 2011 11:06PM UTC

Closed February 01, 2011 08:35AM UTC

Last modified March 09, 2012 11:01AM UTC

jQuery.ajax fails when only the URL parameter is provided

Reported by: danheberden Owned by: danheberden
Priority: low Milestone: 1.5.1
Component: ajax Version: 1.5
Keywords: Cc: jaubourg
Blocked by: Blocking:
Description

$.ajax( 'url' ); fails with

Chrome:
Uncaught TypeError: Cannot use 'in' operator to search for 'context' in /echo/html

FF4:
Error: invalid 'in' operand options
Source File: http://code.jquery.com/jquery-git.js
Line: 6352

If the settings object (even if just {} ) is present, it works fine. Also, looks like unit tests passed cuz it was just calling $.ajax();

http://jsfiddle.net/danheberden/u9qsW/

Attachments (0)
Change History (7)

Changed January 31, 2011 11:07PM UTC by danheberden comment:1

cc: → jaubourg
component: unfiledajax
description: $.ajax( 'url' ); fails with \ \ Uncaught TypeError: Cannot use 'in' operator to search for 'context' in /echo/html \ \ If the settings object (even if just {} ) is present, it works fine. Also, looks like unit tests passed cuz it was just calling $.ajax(); \ \ http://jsfiddle.net/danheberden/u9qsW/$.ajax( 'url' ); fails with \ \ \ {{{ \ Uncaught TypeError: Cannot use 'in' operator to search for 'context' in /echo/html \ }}} \ \ If the settings object (even if just {} ) is present, it works fine. Also, looks like unit tests passed cuz it was just calling $.ajax(); \ \ http://jsfiddle.net/danheberden/u9qsW/
priority: undecidedlow
status: newopen

Changed January 31, 2011 11:10PM UTC by danheberden comment:2

description: $.ajax( 'url' ); fails with \ \ \ {{{ \ Uncaught TypeError: Cannot use 'in' operator to search for 'context' in /echo/html \ }}} \ \ If the settings object (even if just {} ) is present, it works fine. Also, looks like unit tests passed cuz it was just calling $.ajax(); \ \ http://jsfiddle.net/danheberden/u9qsW/$.ajax( 'url' ); fails with \ \ \ {{{ \ Chrome: \ Uncaught TypeError: Cannot use 'in' operator to search for 'context' in /echo/html \ \ FF4: \ Error: invalid 'in' operand options \ Source File: http://code.jquery.com/jquery-git.js \ Line: 6352 \ }}} \ \ If the settings object (even if just {} ) is present, it works fine. Also, looks like unit tests passed cuz it was just calling $.ajax(); \ \ http://jsfiddle.net/danheberden/u9qsW/

Changed January 31, 2011 11:33PM UTC by rwaldron comment:3

owner: → danheberden
status: openassigned

Confirmed

Changed February 01, 2011 05:46AM UTC by danheberden comment:4

Changed February 01, 2011 08:35AM UTC by danheberden comment:5

resolution: → fixed
status: assignedclosed

Changed February 01, 2011 11:56AM UTC by jitter comment:6

milestone: 1.next1.5.1

Changed February 02, 2011 04:47AM UTC by timmywil comment:7

Ah cool, just found this bug myself.