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

setvik’s picture

I 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.

aklump’s picture

Version: 6.x-2.3 » 6.x-2.5

Safari 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.

merlinofchaos’s picture

Priority: Critical » Normal

Well. AJAX tablesorting not working is probably not critical.

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Is 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

esmerel’s picture

No updates for more than 30 days

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
wernerglinka’s picture

Version: 6.x-2.5 » 6.x-2.12
Priority: Normal » Critical
Status: Closed (cannot reproduce) » Active

This 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...

dawehner’s picture

Priority: Critical » Normal
Critical issues are bugs where the application crashes or is otherwise completely unusable. For all other issues where a feature does not work properly, please use "Normal".
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.

This 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?


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.

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

wernerglinka’s picture

Priority: Normal » Critical

dereine, 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.

dawehner’s picture

Priority: Critical » Normal

Again ... 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.

wernerglinka’s picture

Priority: Normal » Critical

I 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.

dawehner’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

I assume you don't do this intentionally

Can you please try to downgrade to jquery 1.2.6 as it is shipped with drupal?

wernerglinka’s picture

Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Active

I 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 "

wernerglinka’s picture

Hey 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

dawehner’s picture

Priority: Critical » Normal

I 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 "

Changing 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.

wernerglinka’s picture

Priority: Normal » Critical

Changing 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.

dawehner’s picture

Priority: Critical » Normal

Congrats :)


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.

It's not on the frontpage but you can find it out "all releases".

wernerglinka’s picture

I 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.

wernerglinka’s picture

Status: Active » Closed (fixed)

Alright, 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.