Modify ↓
Ticket #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: | |
| 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.
- also forum topic:
http://forum.jquery.com/topic/ajax-cache-change-the-separator
Change History
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: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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.