Skip to main content

Bug Tracker

Side navigation

#6906 closed bug (worksforme)

Opened August 15, 2010 07:37PM UTC

Closed August 15, 2010 10:03PM UTC

$.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:
Description

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

Attachments (0)
Change History (2)

Changed August 15, 2010 07:39PM UTC by expolit comment:1

This is correct:

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

Changed August 15, 2010 10:03PM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

That is because

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