Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.12
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2009 at 20:18 UTC
Updated:
29 Aug 2011 at 17:32 UTC
Is this still an issue with the Views 2.x module for Drupal 6.x ??
I have created a view and have customized the theme templates. It's a table structure. Exposed filtering and pagination works flawlessly, however when I click on the any sortable column an entire page refresh occurs everytime. This is incorrect behaviour is it now?
Comments
Comment #1
setvik commentedI can confirm this bug in Safari 4 beta.
Column sorting correctly uses ajax in Firefox, but in Safari 4 beta on OS X, it refreshes the page.
Comment #2
aklump commentedSafari Version 4 Public Beta (5528.16)
I can confirm this as well and I'll add that it was happening on applying a filter as well... but only sometimes... it seems to be related to the length of time it takes the ajax call to return results. So if the ajax comes back before the page reloads, it works fine, but if the page refreshes before the ajax finishes, I'm taken to a nearly blank page.
I'm taking a wild quess, having reviewed no code, but it's like the js return FALSE; isn't being honored in safari.
Comment #3
merlinofchaos commentedWell. AJAX tablesorting not working is probably not critical.
Comment #4
dawehnerIs there any kind of js error display on safari, like firebug?
Perhaps this is related to #798764: base.js line 67 chrome, variable pairs[i] sometimes contain functions and not only stings
I would really like you to test this patch
Comment #5
esmerel commentedNo updates for more than 30 days
Comment #6
esmerel commentedComment #7
wernerglinka commentedThis seems to be still an issue and it is a critical issue if you want to use views in tabs. That is the problem I am running into.
I am using views 6.x 2.12 and Quicktabs 6.x - 3.0 to show related views in tabs.
The views are tables with sortable columns.
If I sort any column of the table in the third tab for example the page refreshes and as a consequence the first tab is shown again.
A secondary problem is that if I sort a table column in a tab, the table columns in all tabs are sorted. I show categorized documents in a table. In one tab/table I show all documents, in other tabs I show a table for only one document category. So all tables have the same structure. If I place two such tables on a page without quicktabs, the same thing occurs. Clicking on one table column to sort will also sort the other one.... and the whole pages refreshes even though AJAX is set.
Don't know whether these two issues are related. I'd really appreciate any pointers...
Comment #8
dawehnerThis sounds a bit like a quicktabs issue, not sure whether the behaviours are attached here or not.
Can you see any js errors when you do this action?
Well that's currently a general bug... you can't have two table sorts at the same page at the moment.
See #1160840: Implementing Table sort for multiple tables on single page [PATCH]
In general it's always good to read http://drupal.org/node/571990
Comment #9
wernerglinka commenteddereine, thanks for the quick reply. Sorry, I'll pay better attention to the issues ranking next time around, I just copied what this issue was once before.
I'll check out the multiple table sorting on one page issue.
I don't think it is Quicktabs, because even when I put just one table on a page, set AJAX to YES the page still refreshes at every column sort. And there are no js errors.
Comment #10
dawehnerAgain ... http://drupal.org/node/388904#comment-1761810
Please try to find out an js bug, because if this happens on every page it is probably another issue.
For example an updated jquery version might cause the problem but there could be other reasons as well.
Comment #11
wernerglinka commentedI am using firebug and there are no javascript errors. I am running jQuery 1.3.2. I'll try to eliminate all other js to see whether these is a conflict.
Comment #12
dawehnerI assume you don't do this intentionally
Can you please try to downgrade to jquery 1.2.6 as it is shipped with drupal?
Comment #13
wernerglinka commentedI downgraded to 1.2.6 but it doesn't make a difference. btw, what do you mean by "I assume you don't do this intentionally "
Comment #14
wernerglinka commentedHey Daniel,
Habe gerade gelesen das Du Deutscher bist. Ich sitzte hier in Kalifornien, südlich von San Francisco. Das ist ja ein Ding, das ich mit jemanden aus der alten Heimat "spreche". Bin vor 30 Jahren ausgewandert... Ich bin sehr dankbar das Du Dir die Zeit nimmst mit mir zu "reden".
Gruß,
Werner
Comment #15
dawehnerChanging the issue priority. There are soooooooo many other issues which seems to be way more critical. Please respect this.
Cool san fransisco and around is a really nice place. I have been there for a week having a lot of fun. Not sure whether you know san jose or not.
Btw, I tend to like to write english on drupal.org, so everyone can read and understand it.
Okay back to the topic. Can you try to explain how to reproduce the first issue?
As the normal ajax sorting of tables works you have done probably something special .... As always i would encourage you to make a backup and try to use views 2.x-dev. There are really a lot of things fixed since the last release.
Comment #16
wernerglinka commentedChanging the priority was an innocent mistake. Next time I'll know better. I don't want to waste the time of the people that volunteer on this forum.
About the first issue, I was hoping that someone has seen something like it and could point me in the right direction. I'll build a fresh D6 install with only the required modules and see whether I can narrow down the problem.
I just looked and there is no views 2.x-dev version anymore. So I'll try to upgrade to 6.x-3.x this weekend.
I appreciate your time and will report back when I find the cause or need more help.
Comment #17
dawehnerCongrats :)
It's not on the frontpage but you can find it out "all releases".
Comment #18
wernerglinka commentedI didn't realize until a second ago that I changed the priority every time I send a message because the selection was set that way from the first message. I never noticed that before. Time to have a break and have a beer. ( I am on a tight deadline for one of my clients...) Have a nice weekend and thanks again for your help.
Comment #19
wernerglinka commentedAlright, I fixed my issue. For all who may run into an AJAX table sorting issue:
I had created a view and customized the views theme templates (just like the original poster).
I do this quite often to reduce the classes and divs that are not needed in my applications. Well, this time I went one step too far. I had modified views-view.tpl.php and among other things had taken out the outer wrapping div
<div class="<?php print $classes; ?>">and it looks like that views is looking for some of these classes to load content. Talking about a self inflicted wound. All it took was to add this wrapper div back in and all is well.Thanks to dereine for pointing me in the right direction. I found this by making a feature and importing it into a clean site install. Then it was just a matter of taking functionality out until the AJAX sorting started to work again.