Opened 13 years ago

Closed 13 years ago

#17790 closed Bug (fixed)

Ajax CSRF example is needlessly restrictive

Reported by: jonathan.hayward@… Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

On https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ , the jQuery call begins "$(document)..." which needlessly locks the user into using jQuery only, and not jQuery plus other libraries, which jQuery is designed to do; jQuery can be told to relinquish the "$" identifier, which other libraries like Prototype depend on. There is no loss and pure gain in terms of compatibility with multiple library usage if the call begins "jQuery(document)..."

Change History (1)

comment:1 by Carl Meyer, 13 years ago

Resolution: fixed
Status: newclosed

In [17623]:

Fixed #17790 - Made the Ajax CSRF jQuery example work with jQuery in compatibility mode, too. Thanks Jonathan Hayward for the suggestion.

Note: See TracTickets for help on using tickets.
Back to Top