Bug Tracker

Opened 12 years ago

Closed 12 years ago

#6906 closed bug (worksforme)

$.get(window.location, {a: 'b'}, callback); - Works bad in IE7(6,8?)

Reported by: expolit Owned by:
Priority: Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:


If i call at this page http://example.ru/cat/ code: $.get(window.location, {a: 'b'}, callback); in ie.

It will send request to: http://example.ru/cat/[object%20Object]?a=b

Change History (2)

comment:1 Changed 12 years ago by expolit

This is correct: It will send request to: http://example.ru/[object%20Object]?a=b

comment:2 Changed 12 years ago by dmethvin

Resolution: worksforme
Status: newclosed

That is because window.location is an object. The URL must be a *string*. Try window.location.href.

Note: See TracTickets for help on using tickets.