Postponed (maintainer needs more info)
Project:
Javascript Tools
Version:
5.x-1.x-dev
Component:
Active Search
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2007 at 04:48 UTC
Updated:
27 Jan 2009 at 11:05 UTC
Comments
Comment #1
ilroby commentedForgot to add, this happens with IE (7 and I think 6 as well), seems ok with Firefox.
Comment #2
nedjoThanks for the note. It's a case of the forward slash getting escaped. More generally, it's a limited/poor implementation of 'hijax' (updating history with AJAX state changes).
The best solution likely is to use the enhanced history plugin that's now part of Javascript Tools instead of the custom approach used here.
Comment #3
manimal commentedyes, this also happens in safari for windows and osx.
I'm not sure what you mean about using the enhanced history? is this a setting? (sorry I'm sorta new)
Comment #4
manimal commentednevermind.. found the dev release..(haven't slept in awhile)
Comment #5
somatics commentedThis is still happening for me. I have Drupal 5.2 on a Mac OS X 10.4 server with JS Tools and all associated modules installed. It's the latest version of JS Tools (5.0.8). I need to fix this soon, as we launch our site in 24 hours!
Comment #6
somatics commentedI just installed the HEAD and tried it again -- still the same problem.
Comment #7
nedjoWhat I mean is that the Javascript needs to be rewritten. Currently it uses its own way of appending history to the URL. Evidently this fails in IE. One option would be to try to fix this in IE. But it would be better to remove the custom implementation and instead use the jQuery history plugin, which provides a much better solution.
Comment #8
nedjoFixed in HEAD and DRUPAL-5 (5.x dev) branch.
Replaced space character with =, which doesn't get escaped.
Comment #9
jwilde commentedHi nedjo,
Thank you for all of the hard work. Active search works great. jim
Comment #10
somatics commentedYes, I installed the HEAD version (I didn't know where else to find the dev version) and it fixed virtually ALL the Javascript problems I was having -- the very same search problem reported here, the inability to re-order items in Interface Sortable, and -- most of all -- a "fatal" problem with the checkout process in UberCart. These were all present only on Safari not on FireFox with jstools 5.x-0.8 and now with the latest HEAD version that was fixed yesterday, they're gone. Thank you!!
Comment #11
jwilde commentedI'm still having the problem somewhat in IE. For example, if I search for, 'the long tail', this is what shows up, 'the%20long%20tail', in the search form box.
Best jim
Comment #12
nedjok, thanks for the report. /me is beginning to regret ever coding this module. I suppose we need to substitute + for spaces in the string passed by the javascript. I'd welcome a patch.
Comment #13
drupalina commentedSubscribing.
I have the same problem: 20 appears before and %20 appears between the searck terms. It'd be great to have a solution for this ASAP.
Comment #14
bobdalob commentedSubscribing. Tried in latest dev release & 5.x-0.8, same problem. Okay in FF & Opera
Comment #15
pictogram commentedSubscribing, but I can't help here, sorry.
Comment #16
missym commentedsubscribing - same issue
Only an issue when Active Search is on
Comment #17
adam-s commentedJust ran into this problem on a site. A quick hack if you're not quite ready for upgrade...
Go to modules/search/search.module
In the search_query_insert function just before lines 634-635...
Add the following code...
if (substr($keys, 0 ,2)=='20') $keys=substr($keys, 2);So it looks like...
Not even close to a perfect or ideal solution but if you need a quick fix maybe this will help...
Comment #18
Lityi commentedthx, it works as a quick fix ;)
Comment #19
adam-s commentedLooks like this may not work for Safari users.
Comment #20
yasSubscribing.
Comment #21
westwesterson commentedthis totally breaks search in the safari browser! v 3.1 The page keeps getting refreshed and fills the search box with 20s.
Comment #22
somatics commentedI am having these same problems in Safari 3 or 3.1 with Javascript Tools that I used to have before I upgraded the module last Fall, but now it happens no matter how recent a version I use.
Does anyone know what the fix is? It is messing up my shopping cart functionality, and I am losing customers rapidly.
Comment #23
westwesterson commentedI can confirm my problems with thie have ended with the latest release.
Comment #24
bobdalob commentedIt still causes problems (as described in #21) with safari (windows), in an advanced search performed with more than one word.
Note: the %20 issue occurs regardless of simple/advanced, when using more than one search term.
Comment #25
nedjoSafari issue addressed by not applying Activesearch under Safari. See http://drupal.org/node/192910#comment-806695.
Comment #26
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #27
timefor commentedwas this ever fixed?
Comment #28
ekendra commentedin activesearch.js change the function starting on line 29 to:
seems to do the trick although I'm sure there's a more elegant solution
Comment #29
quineto commentedhello ekendra
this code only replaces the first 20 in the first term, does it york for you for more than one term?
Comment #30
quineto commentedHello Lityi,
Did this fix worked for more than one term in the search box?
thanks
Comment #31
goudal commentedIt does not work when there is a accentued character...