jQuery: The Write Less, Do More JavaScript Library

Ticket #2842 (closed bug: fixed)

Opened 3 months ago

Last modified 3 months ago

missing url in $.ajax fails (instead of using the current url)

Reported by: onetimeaccount Assigned to: flesler
Type: bug Priority: major
Milestone: 1.2.4 Component: ajax
Version: 1.2.3 Keywords: url .ajax
Cc: Needs: Review

Description

http://docs.jquery.com/Ajax/jQuery.ajax#toptions says the "default" is the current page.

What I got is "s.url is undefined jquery.js (line 2630)" in firefox 3 alpha 5

safari 3.1.1 similar.

no further testing by me.

jquery version = 1.2.3

Attachments

2842-ajax_undefiend_url.diff (360 bytes) - added by Morgan 3 months ago.
add default url

Change History

Changed 3 months ago by flesler

  • owner set to flesler
  • status changed from new to assigned

Indeed, this is not as documented, will look into it.

Changed 3 months ago by Morgan

add default url

Changed 3 months ago by Morgan

here's a quick patch that add url: document.location.href to the ajaxSettings

Changed 3 months ago by flesler

  • status changed from assigned to closed
  • resolution set to fixed

Closed at [5600], thanks.

Note: See TracTickets for help on using tickets.