Hi,
I wanted to activate the view's cache and found out that the above message appears on the view if an exposed filter for a taxonomy is used with HS. The message does not appear when the rendered output is not cached. Is there a way to avoid this?
Best,
Tobias
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | no_js_error.png | 16.74 KB | jsedwick |
Comments
Comment #1
wim leersNo. HS has its own form cache and therefor always needs a unique, freshly generated form ID. Apparently, Views' cache option also caches the exposed filter form. Let's ask the Views developers to be sure.
Comment #2
tobiberlinstill an issue
Comment #3
merlinofchaos commentedI'm afraid I don't understand what's being asked.
Comment #4
tobiberlinok again:
- HS activated
- exposed filter used in views with HS as type of selection
- cache activated in views
- when you try to filter the results of the view by using the exposed filter with HS the abvove error message appears
- it does not appear if "Cache rendered output" is deactivated
Comment #5
esmerel commentedComment #6
freestone commentedI see this message flash on the screen periodically (intermittent). No cache. It is very strange. The search still seems to work. It happens most often in Safari on a Mac but also window and Chrome.
I am using Views 6.x-2.12 and HS 6.x-3.7
It is very odd that it does not display all the time.
Comment #7
jsedwick commentedThis happens in Firefox on Mac as well. I don't think it is a browser-specific issue.
I've noticed that the message appears on my site even when cache is disabled. However, in my case the "You don't have Javascript enabled" message only appears after the second time I apply the filter. After it appears it stays on the screen with each subsequent application of the filter and it won't go away until I refresh.
I'm thinking of just disabling the error message but that would break it for the one or two browsers a month not running JS that hit the site.
Comment #8
merlinofchaos commentedYou might try the ajax_load module -- your problem sounds like javascript transmission during AJAX requests. The ajax_load module can alleviate this.
Comment #9
freestone commentedTurning Ajax on for the View was of no help at all for me but I did not try the ajax load module.
I figure if you don't have java enabled then you are not a user I care about. You would have to disable it since it is by default enabled in all browsers as far as I know. If know enough to disable java then you know that you have a poor web experience and turn it on when you want/need it.
I hacked the HS module to just turn off incorrect message ...I tried to just CSS .nojs:display:none in the theme override.css but that did not suppress it. Perhaps I need to put it in the JQueryUI CSS ?
I have read for two days on this exposed filters topic and finally found a combo that works for me. I tested my application on many browsers and the fact is the site works on all browsers and Windows and Mac so I just turned off this message which is in error and posted my solution here
http://drupal.org/node/734178
Post #36 .... I know this is not the best thing to do but I spent two days trying various combos and for my set up which is:
HS 6x-3.7 and
Views 6x-2.12
JQuery_UI 6x-1.14
Taxonomy with depth and Text exposed filter with Remember turned on for them all so that if you click on a node and then hit the back button the view is still filtered.
The only way to get the search working good was to turn off cache, off Ajax and use a custom module for the reset button. I found some good reset code from back in 2009 (another very difficult thing to come by) here
http://drupal.org/node/99370
I tried pretty much all of the ideas in this post and the only one that worked for me was post #26
I did a follow-on post #84 in case people did not know how to extrapolate to multiple views. I am sure there is an array way to do that but I only have 5 views so brute force worked fine.
At any rate hopefully these setting and changes help someone else struggling with getting exposed filters working with remember turned on.
Cheers
Comment #10
jsedwick commentedThank you, I'll try that. If it's helpful I found out jquery_ui 6.x-1.10 caused the symptoms I described in my previous post and jquery_ui 6.x-1.5 makes it even worse. I disabled jquery_ui and the exposed HS views filter works perfectly again.
Sadly, some nice modules rely on jquery_ui.
I should also say I'm using:
Views 6.x-2.12
Hierarchical Select 6.x-3.7
Comment #11
freestone commentedjsedwich good point about Jquery_UI and I added it to my list in the above post. I am running jquery_ui 6x-1.14 and I did try 1.5 after reading one post but as you say it made things worse.
I do have multiple dependencies on jquery_ui .... primaryily Full Calendar so I can't really turn that one off but very good for people to know that is a conflict if they don't really need it.
Comment #12
mustanggb commented