Bug Tracker

Opened 9 years ago

Closed 8 years ago

#6924 closed feature (wontfix)

Global option for changing GET-separators

Reported by: Hasenpfote Owned by:
Priority: low Milestone: 1.next
Component: ajax Version: 1.4.2
Keywords: needsreview, ajaxrewrite Cc:
Blocked by: Blocking:

Description

W3C recommends the using ";" instead of "&" as a separator in a url-query.

jquery should have the possibility to change the separator via a global option.

  1. also forum topic:

http://forum.jquery.com/topic/ajax-cache-change-the-separator

Change History (9)

comment:1 Changed 9 years ago by dmethvin

Wow, I don't think I ever knew that, or if so I have forgotten it thoroughly. Seems like several projects have been asked about this:

http://dev.rubyonrails.org/ticket/4394

http://groups.google.com/group/prototype-core/browse_thread/thread/14b8aa4d6fbe2c22/b8c4776f02075b43

http://davidwalsh.name/change-php-query-string-variable-separator-php-ini

One possible implementation would be to add a variable like jQuery.ajaxSettings.paramSeparator and also allow that to be passed in via ajax options. At the moment we have a couple of global regexps compiled at load time that use ampersand to recognize urls. Those would need to be recreated at each call to $.ajax instead.

comment:2 Changed 9 years ago by dmethvin

Component: unfiledajax

comment:3 Changed 9 years ago by snover

Keywords: needsreview added
Priority: undecided

This smells like bikeshed/feature creep. Marking for review.

comment:4 Changed 9 years ago by snover

Milestone: 1.4.3

Resetting milestone to future.

comment:5 Changed 9 years ago by Rick Waldron

Keywords: ajaxrewrite added

comment:6 Changed 8 years ago by john

Milestone: 1.next
Priority: undecidedlow
Status: newopen

Could be interesting - let's discuss this during the 1.7 roadmap discussion.

comment:7 Changed 8 years ago by john

Resolution: fixed
Status: openclosed

On second thought, let's push this off to a plugin (since Ajax is extensible now) - and we can reintegrate it later.

comment:8 Changed 8 years ago by john

Resolution: fixed
Status: closedreopened

comment:9 Changed 8 years ago by john

Resolution: wontfix
Status: reopenedclosed
Note: See TracTickets for help on using tickets.