Bug Tracker

Modify

Ticket #6924 (closed feature: wontfix)

Opened 3 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 3 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 3 years ago by dmethvin

  • Component changed from unfiled to ajax

comment:3 Changed 3 years ago by snover

  • Keywords needsreview added
  • Priority set to undecided

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

comment:4 Changed 3 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

comment:5 Changed 2 years ago by rwaldron

  • Keywords needsreview,ajaxrewrite added; needsreview removed

comment:6 Changed 2 years ago by john

  • Priority changed from undecided to low
  • Status changed from new to open
  • Milestone set to 1.next

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

comment:7 Changed 2 years ago by john

  • Status changed from open to closed
  • Resolution set to fixed

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 2 years ago by john

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:9 Changed 2 years ago by john

  • Status changed from reopened to closed
  • Resolution set to wontfix

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.