the ajax view inside ajax quicktabs will only work when there is no other ajax view on the same page.

If there is an ajax view on the page or inside previously loaded tabpage, then the ajax functions of the view will fail. It mostly renders the first ajax view when trying to use sort, filter or pagination..

Comments

katbailey’s picture

Please see #339295: Minor fix to allow multiple ajax-paged views on a page. This patch has been committed to views and solves this problem

pasqualle’s picture

Status: Active » Postponed (maintainer needs more info)

thanks Katherine, that is really good news. I will definitely test it.

pasqualle’s picture

Status: Postponed (maintainer needs more info) » Active

I tried it with the latest views-dev release, but it is still not working. (I cleared the cache and everything)

When I click on the table header to sort by that column, then the view is changed to a different view..

katbailey’s picture

Ah yes the patch only covered the pager links, I forgot about the table sort links. Can you please test the new patch I submitted to the same thread (http://drupal.org/node/339295#comment-1153065) and see if it fixes this?

thanks,
Katherine

pasqualle’s picture

Thanks, that patch works nicely. The only remaining problem is with exposed filters.
I don't understand why, but now my exposed filters (inside ajax QT) do a full redirect to the views url (like the view was not an ajax view).

kwgossett’s picture

Version: 6.x-2.x-dev » 6.x-2.0-rc1
StatusFileSize
new181.39 KB
new181.39 KB

I'm not sure if this is related. If not, I'll gladly open another issue.

I have a calendar/view inside of a few quicktabs. The idea is to show each city's calendar inside a quicktab. At this point, the calendar is not showing in the view, but various attributes are (<< Prev month, next >> month, Year, Month, Week, Day. BUT the 'issue' here is that when I click any of these attributes, (Prev, Next, Year, Month, etc) I get a popup file download box asking me if I want to download the file or open it with another program.

I also notice when I hover over the Prev, Next, Year, etc link, the URL is not the same as the non-quicktab URL. In other words, with just the view, if I hover over 'Next >>' I see .../calendar/2009-01 (taking me to the Jan 09 calendar view). Inside the quicktab, however, the URL is a complex query.

I'm attaching a screenshot, where you can see the popup and URL when hovering over the 'Next' tab.

Thank you :)

katbailey’s picture

Hi,
are you using IE 8? Can you try it in another browser and see if it's still happening? At least IE7 (I've heard IE8 has a lot of very serious bugs). But ideally try it in Firefox and see if the problem still exists - we need to narrow the issue down and remove any possibility of browser craziness.

thanks,
Katherine

kwgossett’s picture

Hi Katherine,
The popup file download box occured in IE 7. I tried it in Firefox, and got the following error (note, it wasn't code, per se, as in a warning, but rather a single line of code across a solid white page).

Similar errors occured when I clicked the 'next, prev, Year, Month, etc' links, as well as the calendar links on other tabs. The error below is for the 'next' link on the first tab.

I've changed the domain name in the code below to "www.domain.com" because I don't want Google indexing my site at this time.

{ "status": true, "display": "\x3cdiv class=\"view view-calendar view-id-calendar view-display-id-default view-dom-id-1\"\x3e\n \x3cdiv class=\"views-admin-links views-hide\"\x3e\n \x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3ca href=\"/admin/build/views/edit/calendar?destination=views%2Fajax%3Fview_name%3Dcalendar%26view_display_id%3Ddefault%26view_args%3D#views-tab-default\"\x3eEdit\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"/admin/build/views/export/calendar\"\x3eExport\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2 last\"\x3e\x3ca href=\"/admin/build/views/clone/calendar\"\x3eClone\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e \x3c/div\x3e\n \n \n \n \x3cdiv class=\"view-content\"\x3e\n \n\x3cdiv class=\"calendar-calendar\"\x3e\n \x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3ca href=\"http://www.newmexicokayakinstruction.com/views/ajax?view_name=calendar\x26amp;view_display_id=default\x26amp;view_args=\x26amp;=calendar/2008\" rel=\"nofollow\"\x3eYear\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"http://www.newmexicokayakinstruction.com/views/ajax?view_name=calendar\x26amp;view_display_id=default\x26amp;view_args=\x26amp;=calendar/2008-12\" rel=\"nofollow\"\x3eMonth\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2\"\x3e\x3ca href=\"http://www.newmexicokayakinstruction.com/views/ajax?view_name=calendar\x26amp;view_display_id=default\x26amp;view_args=\x26amp;=calendar/2008-W51\" rel=\"nofollow\"\x3eWeek\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"3 last\"\x3e\x3ca href=\"http://www.newmexicokayakinstruction.com/views/ajax?view_name=calendar\x26amp;view_display_id=default\x26amp;view_args=\x26amp;=calendar/2008-12-19\" rel=\"nofollow\"\x3eDay\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e \x3cdiv class=\"date-nav clear-block\"\x3e\n \x3cdiv class=\"date-prev\"\x3e\n \x3cspan class=\"next\"\x3e \x3ca href=\"http://www.newmexicokayakinstruction.com/views/ajax?view_name=calendar\x26amp;view_display_id=default\x26amp;view_args=\x26amp;=calendar/2008-11\" rel=\"nofollow\"\x3e« prev\x3c/a\x3e\x3c/span\x3e\n \x26nbsp;\x3c/div\x3e\n \x3cdiv class=\"date-heading\"\x3e\n \x3ch3\x3eDecember 2008\x3c/h3\x3e\n \x3c/div\x3e\n \x3cdiv class=\"date-next\"\x3e\x26nbsp;\n \x3cspan class=\"next\"\x3e \x3ca href=\"http://www.newmexicokayakinstruction.com/views/ajax?view_name=calendar\x26amp;view_display_id=default\x26amp;view_args=\x26amp;=calendar/2009-01\" rel=\"nofollow\"\x3enext »\x3c/a\x3e\x3c/span\x3e\n \n \x3c/div\x3e\n\x3c/div\x3e\n\x3c/div\x3e \x3c/div\x3e\n \n \n \n \n \n \n\x3c/div\x3e ", "title": "", "__callbacks": [ "Drupal.Views.Ajax.ajaxViewResponse" ], "messages": "\x3cdiv class=\"views-messages\"\x3e\x3cdiv class=\"messages status\"\x3e\n\x3ca href=\"/admin/settings/site-maintenance\"\x3eOperating in off-line mode.\x3c/a\x3e\x3c/div\x3e\n\x3c/div\x3e" }

Thank you,

katbailey’s picture

OK, I've just done some testing with a calendar view inside a QT. Calendar views don't have ajax-based navigation so they are always looking to reload the current page and add a querystring to say which month should be shown or whatever. The problem is if it has been loaded via ajax itself then it's using $_GET['q'] as the current path and this will be the ajax path that returned the content. So, you can't use a calendar view inside an ajax QT. You can use it inside a normal QT but you'll have to do some tweaking with the links in the calendar block to add the active quicktab to the querystring so that it will open the correct tab after it reloads the page. Does that make sense?

kwgossett’s picture

Hi Katherine,
I think I understand. Basically, Calendar/views won't work with the AJAX navigation, because of the way it tries to reload? As far as adding a block, and linking the QT to the block, I thought that was not possible, and the reason QT 2.0 came about. I've added blocks in the past, but were unable to navigate from one month to the next or different tabs. From what I recall, if I had Tab2 open, and clicked the 'next' month, it activated Tab1, and never moved fluidly from one month to the next on Tab2, Tab3, etc.

pasqualle’s picture

Version: 6.x-2.0-rc1 » 6.x-2.0-rc2
Status: Active » Postponed (maintainer needs more info)

are there still issues with ajax views inside ajax quicktabs? I don't know of any..

katbailey’s picture

Status: Postponed (maintainer needs more info) » Fixed

No, I'm pretty sure these strange behaviours have been fixed with the recent changes to ajax_view.js in Views

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kotu’s picture

I have still this issue. It appears where QuickTabs are set to use AJAX and content in tabs are Views blocks with enabled AJAX paging... I have to switch QuickTabs to JS to be able to hava ajax sorting within blocks of views.

Example of result when try to sort:

{ "status": true, "data": " \x3cdiv class=\"block block-views\" id=\"block-views-multi_video-block_1\"\x3e\n \x3ch2 class=\"title\"\x3e\n \x3c/h2\x3e\n \x3cdiv class=\"content\"\x3e\n \x3cdiv class=\"view view-multi-video view-id-multi_video view-display-id-block_1 view-dom-id-1\"\x3e\n \x3cdiv class=\"views-admin-links views-hide\"\x3e\n \x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3ca href=\"/admin/build/views/edit/multi_video?destination=quicktabs%2Fajax%2Fblock%2Fviews_delta_multi_video-block_1%2F1%3Fpage%3D1#views-tab-block_1\"\x3eEdytuj\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"/admin/build/views/export/multi_video\"\x3eEksportuj\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2 last\"\x3e\x3ca href=\"/admin/build/views/clone/multi_video\"\x3eClone\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e \x3c/div\x3e\n \n \n \n \x3cdiv class=\"view-content\"\x3e\n \x3ctable class=\"views-view-grid\"\x3e\n \x3ctbody\x3e\n \x3ctr class=\"row-1 row-first\"\x3e\n \x3ctd class=\"col-1\"\x3e\n \n \x3cdiv class=\"views-field-field-video-embed\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/best-beatboxer.html\"\x3e\x3ca href=\"/multimedia/best-beatboxer.html\"\x3e\x3cimg src=\"http://img.youtube.com/vi/Ikkx6a8WzOM/1.jpg\" width=\"120\" height=\"90\" alt=\"\" title=\"\" /\x3e\x3c/a\x3e\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \n \x3cdiv class=\"views-field-title\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/best-beatboxer.html\"\x3eBest Beatboxer\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3c/td\x3e\n \x3ctd class=\"col-2\"\x3e\n \n \x3cdiv class=\"views-field-field-video-embed\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/ninja-nie-kot.html\"\x3e\x3ca href=\"/multimedia/ninja-nie-kot.html\"\x3e\x3cimg src=\"http://img.youtube.com/vi/muLIPWjks_M/3.jpg\" width=\"120\" height=\"90\" alt=\"\" title=\"\" /\x3e\x3c/a\x3e\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \n \x3cdiv class=\"views-field-title\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/ninja-nie-kot.html\"\x3eNinja nie kot\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3c/td\x3e\n \x3ctd class=\"col-3\"\x3e\n \n \x3cdiv class=\"views-field-field-video-embed\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/stepstones-team-building.html\"\x3e\x3ca href=\"/multimedia/stepstones-team-building.html\"\x3e\x3cimg src=\"http://img.youtube.com/vi/V3C_GU96Aqs/2.jpg\" width=\"120\" height=\"90\" alt=\"\" title=\"\" /\x3e\x3c/a\x3e\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \n \x3cdiv class=\"views-field-title\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/stepstones-team-building.html\"\x3eStepstone\x26#039;s team building\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr class=\"row-2\"\x3e\n \x3ctd class=\"col-1\"\x3e\n \n \x3cdiv class=\"views-field-field-video-embed\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/emade-dam-ci-przezyc.html\"\x3e\x3ca href=\"/multimedia/emade-dam-ci-przezyc.html\"\x3e\x3cimg src=\"http://img.youtube.com/vi/UBSClSP8OAo/2.jpg\" width=\"120\" height=\"90\" alt=\"\" title=\"\" /\x3e\x3c/a\x3e\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \n \x3cdiv class=\"views-field-title\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/emade-dam-ci-przezyc.html\"\x3eEmade - Dam ci przeżyć\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3c/td\x3e\n \x3ctd class=\"col-2\"\x3e\n \n \x3cdiv class=\"views-field-field-video-embed\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/pani-barbara.html\"\x3e\x3ca href=\"/multimedia/pani-barbara.html\"\x3e\x3cimg src=\"http://img.youtube.com/vi/32nX4Mgvf04/3.jpg\" width=\"120\" height=\"90\" alt=\"\" title=\"\" /\x3e\x3c/a\x3e\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \n \x3cdiv class=\"views-field-title\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/pani-barbara.html\"\x3ePani Barbara\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3c/td\x3e\n \x3ctd class=\"col-3\"\x3e\n \n \x3cdiv class=\"views-field-field-video-embed\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/nosowska-przemyk-kochana.html\"\x3e\x3ca href=\"/multimedia/nosowska-przemyk-kochana.html\"\x3e\x3cimg src=\"http://img.youtube.com/vi/wifMmFdUxxw/1.jpg\" width=\"120\" height=\"90\" alt=\"\" title=\"\" /\x3e\x3c/a\x3e\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \n \x3cdiv class=\"views-field-title\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/nosowska-przemyk-kochana.html\"\x3eNosowska \x26amp; Przemyk - Kochana\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr class=\"row-3 row-last\"\x3e\n \x3ctd class=\"col-1\"\x3e\n \n \x3cdiv class=\"views-field-field-video-embed\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/billiard-trick-shot-debo.html\"\x3e\x3ca href=\"/multimedia/billiard-trick-shot-debo.html\"\x3e\x3cimg src=\"http://img.youtube.com/vi/J_ZFrux08i4/1.jpg\" width=\"120\" height=\"90\" alt=\"\" title=\"\" /\x3e\x3c/a\x3e\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \n \x3cdiv class=\"views-field-title\"\x3e\n \x3cspan class=\"field-content\"\x3e\x3ca href=\"/multimedia/billiard-trick-shot-debo.html\"\x3eBilliard trick shot by Dębo ;)\x3c/a\x3e\x3c/span\x3e\n \x3c/div\x3e\n \x3c/td\x3e\n \x3c/tr\x3e\n \x3c/tbody\x3e\n\x3c/table\x3e\n \x3c/div\x3e\n \n \x3cdiv class=\"item-list\"\x3e\x3cul class=\"pager\"\x3e\x3cli class=\"pager-previous first\"\x3e\x3ca href=\"/quicktabs/ajax/block/views_delta_multi_video-block_1/1\" class=\"active\"\x3e‹‹\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"pager-current\"\x3e2 z 2 \x3c/li\x3e\n\x3cli class=\"pager-next last\"\x3e\x26nbsp;\x3c/li\x3e\n\x3c/ul\x3e\x3c/div\x3e \n \n \n \n \n\x3c/div\x3e \x3c/div\x3e\n \x3c/div\x3e\n" }

pasqualle’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

use View as Tab type not Block
#345175: what could be inside ajax quicktabs

you can put ajax view inside ajax QT, but that is only because it got special care from the quicktabs module. That means if you select view as a tab type then it should work. You can use views pagination and filtering, even you put it into ajax QT. But you can't use a block or node which contains the ajax view, because that won't work.

ryanmnly’s picture

I have the same issue. With Quick Tabs Ajax on, views do not load for each tab. I have to much information to turn ajax off, it renders slow. If ajax is on, only one tab works. I'm not sure if it is quick tabs causing the problem though. i think it might be views causing the problem. if i take quick tabs out of the equation and just go to a view page with ajax turned on, it acts all screwy. could this be the common problem?

pasqualle’s picture

Version: 6.x-2.0-rc2 » 6.x-2.x-dev

Is it still a problem with the latest release?

stella’s picture

Using 6.x-2.0-rc3 I have the same problem when I have AJAX in the view enabled and AJAX in QT enabled. However I'm using a views ajax-ified attachment. It should be the same problem as the pager, as the same views/ajax script is loaded - just with the wrong params. A rather simplified version of my view setup is described below.

I have a page view displaying a list of nodes. It takes an argument for the taxonomy term, so only nodes with the supplied tid are shown. If no tid is given then all nodes are shown.

I also have an attachment display attached to the page view. It displays just the taxonomy term name and does not inherit arguments from the parent page. It also takes a taxonomy term and is configured so if not present (never will be since not inheriting), it displays a 'summary, sorted ascending' list which will display counts of nodes tagged with the various terms. The attachment is configured to use AJAX.

I have a quicktab block, containing 2 tabs. Each tab contains the same view, but have a different argument.

Clicking on the tab names loads the correct view data, including the attachment display. However, with AJAX QT, when any of the attachment links are clicked, the first tabbed view is always loaded. If I disable AJAX QT, then the correct data is displayed.

Cheers,
Stella

eddy147’s picture

Not only with ajax views inside quick tabs.

I have a module with a form that does a search and displays the results in one tab, and a second tab with a non-ajax view.

I also get raw data if i press the search button in the first tab.

jrabeemer’s picture

Confirmed breaks Views2 AJAX Table column sorting.

Acquia Drupal w/Views 2.6
Quicktabs 6.x-2.x-dev with Views as Tab.

Contains Table view with AJAX column sorting. It displays initially but column sorting fails on click of table header sort link.

pasqualle’s picture

@momendo: The sort was fixed, tested in comment #5. So there must be some other conflict. Please do more testing, and identify the change when it breaks.

And would need to know what "column sorting fails" means exactly. Does it redirect the page?

jrabeemer’s picture

It redirects the page.

I'll test some more.

pasqualle’s picture

make sure your view is an ajax view: edit view->Basic settings->Use AJAX

jrabeemer’s picture

I have a different set of quicktabs on the same site that use a table view with sorts. That has three tabs and the tables in each can column sort as expected.

The difference with the working ones and the broken one I mentioned is I am inserting them into my template with:

<?php
$block = module_invoke('quicktabs', 'block', 'view', 3);
print $block['content'];
?>

And the following JS lib is not loaded in the header.

<script src="/misc/tableheader.js?e" type="text/javascript">
pasqualle’s picture

are you trying this in the page.tpl.php template? because, that does not work (limitation of D6).
solution: #332895-13: render quicktab programatically
limitation fixed in D7: #469242: Move <head> outside page.tpl.php

jrabeemer’s picture

Actually, I'm inserting that code block in node-MYTYPE.tpl.php

egsj’s picture

I believe this is still an active problem. I only was able to get my ajax sorts and exposed filters to work within qt (using latest versions as of today) by turning off ajax in the quicktabs block.

egsj’s picture

Table sorts does not work this way though, but pagination does. Enabling ajax QT gets sorting working but breaks pagination. Do I need to pass the views tab any arguments for it to paginate properly? I've tried passing it %0/%1 just to see but no luck.

jweedman’s picture

Same here. I have to turn Ajax 'off' on the quicktab for the ajax pagers on the individual tabs to work.

I'm using a quicktab that is comprised of two blocks - both being created from a view. Both blocks use a pager. The first pager works great, but when you switch to tab2 on quicktabs, the pager links you to a page with a huge string of javascript (someone posted that up above).

I did read where you said that you have to use a 'tab' type for ajax-ed tabs to work under an ajax-ed QuickTab. I tried that to no avail. Maybe a more detailed description would help me on that. Obviously, views does not offer a "tab" option - so are you saying create a quicktab for a block that uses a pager, then put that quicktab in another QuickTab that you make importing the first quicktab?

Hope that all makes sense - and looking forward to any help from the Drupal Community. Thanks!

-jweedman

egsj’s picture

Is this being worked or looked at by anyone near the module? I am open to sponsoring development to get this fixed.

pasqualle’s picture

@jweedman:

I'm using a quicktab that is comprised of two blocks - both being created from a view

please read comment #15

@ethangj:
last time I checked it was working properly, every related issue (even this one) is fixed.

egsj’s picture

View as tab type meaning select view and then the block rather than selecting block when defining a tab?

pasqualle’s picture

yes, view as tab type means selecting "View" as tab type..

egsj’s picture

When I put the QT to Ajax, and I use a views tab type, my pager breaks. Hitting any of the next page buttons results in it only displaying the header I have set in my view and none of the results. At this point though, sortable tables do work. Now, if I turn off ajax QT, my table sorting stops working, but my pager begins working again.

egsj’s picture

Am I just configuring this incorrectly?

nbchip’s picture

There should be noted that till now Ajax quicktabs breaks ajax views.
Maybe adding some warning about this on module page, would help others.

pasqualle’s picture

ajax view works in ajax quicktab..

nbchip’s picture

But not always! it is definitely beta.
Tried putting 3 tabs with same Ajax View and different argument and it doesn't work, It ignores argument.

pasqualle’s picture

it works with putting the same ajax view into 3 tabs and using different arguments. It does not ignore the argument.

can you show me the website or screenshot of you quicktab edit page and the view edit page (with argument settings visible)?

nbchip’s picture

StatusFileSize
new72.66 KB
new45.52 KB

Tab opens view correctly but as soon as i use pagination (click next) view is lost
Here is screenshot, i can also put in online for you to test

View argument is set to node type, only option that is different from default is set to:
"Display all values"

egsj’s picture

Same problem I'm having.

jaysadie’s picture

I'm also having a similar problem. I have 4 main tabs, with each one having 2 sub-tabs (child-tabs). When I click on the second child tab it works just fine. But as soon as I click on a Sort field, or on next page, it shows the content of the first child-tab, in stead of the content of the 2nd tab . However, the second child-tab still has the focus. Then when you click on either the first or the second tab, they both show the exact same content.

Interesting observation: When I select that both sub-tabs be loaded for Ajax (No: Load all tabs on page view) and then click on a sort field on the second tab, I get a page with one long line as follows:

{ "status": true, "data": "\x3cdiv id=\"quicktabs-2\" class=\"quicktabs_wrapper quicktabs-style-phylactere\"\x3e\x3cul class=\"quicktabs_tabs quicktabs-style-phylactere\"\x3e\x3cli class=\"qtab-0 active first\"\x3e\x3ca href=\"/quicktabs/ajax/qtabs/2?order=name\x26amp;sort=asc\x26amp;quicktabs_2=0#quicktabs-2\" id=\"quicktabs-tab-2-0\" class=\"qt_tab active\"\x3eMain View\x3c/a\x3e\x3c/li\x3e\x3cli class=\"qtab-1 last\"\x3e\x3ca href=\"/quicktabs/ajax/qtabs/2?order=name\x26amp;sort=asc\x26amp;quicktabs_2=1#quicktabs-2\" id=\"quicktabs-tab-2-1\" class=\"qt_tab active\"\x3eList View\x3c/a\x3e\x3c/li\x3e\x3c/ul\x3e\x3cdiv id=\"quicktabs_container_2\" class=\"quicktabs_main quicktabs-style-phylactere\"\x3e\x3cdiv id=\"quicktabs_tabpage_2_0\" class=\"quicktabs_tabpage\"\x3e\x3cdiv class=\"view view-watchlist view-id-watchlist view-display-id-mainview2 view-dom-id-1\"\x3e\n \x3cdiv class=\"views-admin-links views-hide\"\x3e\n \x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3ca href=\"/admin/build/views/edit/watchlist?destination=quicktabs%2Fajax%2Fqtabs%2F2%3Forder%3Dname%26sort%3Dasc#views-tab-mainview2\"\x3eEdit\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"/admin/build/views/export/watchlist\"\x3eExport\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2 last\"\x3e\x3ca href=\"/admin/build/views/clone/watchlist\"\x3eClone\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e \x3c/div\x3e\n \n \n \n \x3cdiv class=\"view-content\"\x3e\n \x3cdiv class=\"item-list\"\x3e\n \x3col\x3e\n \x3cli class=\"views-row views-row-1 views-row-odd views-row-first\"\x3e\x3cdiv id=\"node-36\" class=\"node\"\x3e\n\n\n \x3ch2\x3e\x3ca href=\"/node/36\" title=\"Do you think the 2010 American Idol candidates are on average better than all previous years?\"\x3eDo you think the 2010 American Idol candidates are on average better than all previous years?\x3c/a\x3e\x3c/h2\x3e\n\n \x3cspan class=\"submitted\"\x3eSun, 2010/02/14 - 11:51am — \x3ca href=\"/user/1\" title=\"View user profile.\"\x3ejaysadie\x3c/a\x3e\x3c/span\x3e\n \n \x3cdiv class=\"content clear-block\"\x3e\n \x3cdiv class=\"poll\"\x3e\x3cdiv class=\"text\"\x3eYes, by far\x3c/div\x3e\x3cdiv class=\"bar\"\x3e\x3cdiv style=\"width: 50%;\" class=\"foreground\"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"percent\"\x3e50% \x3cspan class=\"votes\"\x3e(1 vote)\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"text\"\x3eYes, a little\x3c/div\x3e\x3cdiv class=\"bar\"\x3e\x3cdiv style=\"width: 50%;\" class=\"foreground\"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"percent\"\x3e50% \x3cspan class=\"votes\"\x3e(1 vote)\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"text\"\x3eAbout the same\x3c/div\x3e\x3cdiv class=\"bar\"\x3e\x3cdiv style=\"width: 0%;\" class=\"foreground\"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"percent\"\x3e0% \x3cspan class=\"votes\"\x3e(0 votes)\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"text\"\x3eNo\x3c/div\x3e\x3cdiv class=\"bar\"\x3e\x3cdiv style=\"width: 0%;\" class=\"foreground\"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"percent\"\x3e0% \x3cspan class=\"votes\"\x3e(0 votes)\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"total\"\x3eTotal voters: \x3cem\x3e2\x3c/em\x3e\x3c/div\x3e\x3c/div\x3e\x3cform action=\"/advpoll/cancel/36\" accept-charset=\"UTF-8\" method=\"post\" id=\"advpoll-cancel-form\"\x3e\n\x3cdiv\x3e\x3cinput type=\"submit\" name=\"op\" id=\"edit-submit\" value=\"Cancel your vote\" class=\"form-submit\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_build_id\" id=\"form-e156098472386cb4a7c7df28a9dc40e1\" value=\"form-e156098472386cb4a7c7df28a9dc40e1\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_token\" id=\"edit-advpoll-cancel-form-form-token\" value=\"32703c10ce26652a4d27ce19f72c8e84\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_id\" id=\"edit-advpoll-cancel-form\" value=\"advpoll_cancel_form\" /\x3e\n\n\x3c/div\x3e\x3c/form\x3e\n \x3c/div\x3e\n\n \x3cdiv class=\"clear-block\"\x3e\n \x3cdiv class=\"meta\"\x3e\n \x3c/div\x3e\n\n \x3cdiv class=\"links\"\x3e\x3cul class=\"links inline\"\x3e\x3cli class=\"statistics_counter first\"\x3e\x3cspan\x3e6 reads\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"flag-bookmarks last\"\x3e\x3cspan\x3e\x3cspan class=\"flag-wrapper flag-bookmarks flag-bookmarks-36\"\x3e\n \x3ca href=\"/flag/unflag/bookmarks/36?destination=quicktabs%2Fajax%2Fqtabs%2F2%3Forder%3Dname%26sort%3Dasc\x26amp;token=ccdd4b12c3a129f91aacea346a960d99\" title=\"Remove this poll from your Watchlist\" class=\"flag unflag-action flag-link-toggle\" rel=\"nofollow\"\x3eRemove from Watchlist\x3c/a\x3e\x3cspan class=\"flag-throbber\"\x3e\x26nbsp;\x3c/span\x3e\n \x3c/span\x3e\n\x3c/span\x3e\x3c/li\x3e\n\x3c/ul\x3e\x3c/div\x3e\n \x3c/div\x3e\n\n\x3c/div\x3e\n\x3c/li\x3e\n \x3cli class=\"views-row views-row-2 views-row-even views-row-last\"\x3e\x3cdiv id=\"node-22\" class=\"node\"\x3e\n\n\n \x3ch2\x3e\x3ca href=\"/node/22\" title=\"Should the US pull its troops out of Iraq?\"\x3eShould the US pull its troops out of Iraq?\x3c/a\x3e\x3c/h2\x3e\n\n \x3cspan class=\"submitted\"\x3eMon, 2010/02/08 - 2:55pm — \x3ca href=\"/user/25\" title=\"View user profile.\"\x3etest2\x3c/a\x3e\x3c/span\x3e\n \n \x3cdiv class=\"content clear-block\"\x3e\n \x3cform action=\"/node/22\" accept-charset=\"UTF-8\" method=\"post\" id=\"advpoll-voting-binary-form-0\" class=\"advpoll-vote\"\x3e\n\x3cdiv\x3e\x3cinput type=\"hidden\" name=\"ajax\" id=\"edit-ajax\" value=\"\" class=\"ajax\" /\x3e\n\x3cdiv class=\"vote-choices\"\x3e\x3cdiv class=\"form-radios\"\x3e\x3cdiv class=\"form-item\" id=\"edit-choice-71-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-choice-71\"\x3e\x3cinput type=\"radio\" id=\"edit-choice-71\" name=\"choice\" value=\"71\" class=\"form-radio\" /\x3e Yes, immediately\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-choice-72-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-choice-72\"\x3e\x3cinput type=\"radio\" id=\"edit-choice-72\" name=\"choice\" value=\"72\" class=\"form-radio\" /\x3e Yes, by the end of 2010\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-choice-73-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-choice-73\"\x3e\x3cinput type=\"radio\" id=\"edit-choice-73\" name=\"choice\" value=\"73\" class=\"form-radio\" /\x3e Yes, by the end of 2011\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-choice-74-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-choice-74\"\x3e\x3cinput type=\"radio\" id=\"edit-choice-74\" name=\"choice\" value=\"74\" class=\"form-radio\" /\x3e No, not until the region is stable\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-choice-75-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-choice-75\"\x3e\x3cinput type=\"radio\" id=\"edit-choice-75\" name=\"choice\" value=\"75\" class=\"form-radio\" /\x3e Never\x3c/label\x3e\n\x3c/div\x3e\n\x3c/div\x3e\x3c/div\x3e\x3cinput type=\"hidden\" name=\"nid\" id=\"edit-nid\" value=\"22\" class=\"edit-nid\" /\x3e\n\x3cinput type=\"submit\" name=\"op\" id=\"edit-vote-binary-0\" value=\"Vote\" class=\"form-submit\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_build_id\" id=\"form-90db31383bd4b9dff08f6f77c0755576\" value=\"form-90db31383bd4b9dff08f6f77c0755576\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_token\" id=\"edit-advpoll-voting-binary-form-form-token\" value=\"62c7a716f8528c61f41ed3017b1e6f4a\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_id\" id=\"edit-advpoll-voting-binary-form\" value=\"advpoll_voting_binary_form\" /\x3e\n\n\x3c/div\x3e\x3c/form\x3e\n \x3c/div\x3e\n\n \x3cdiv class=\"clear-block\"\x3e\n \x3cdiv class=\"meta\"\x3e\n \x3c/div\x3e\n\n \x3cdiv class=\"links\"\x3e\x3cul class=\"links inline\"\x3e\x3cli class=\"statistics_counter first\"\x3e\x3cspan\x3e3 reads\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"flag-bookmarks last\"\x3e\x3cspan\x3e\x3cspan class=\"flag-wrapper flag-bookmarks flag-bookmarks-22\"\x3e\n \x3ca href=\"/flag/unflag/bookmarks/22?destination=quicktabs%2Fajax%2Fqtabs%2F2%3Forder%3Dname%26sort%3Dasc\x26amp;token=8b5b15f50e654e50dd98e8677ab468ec\" title=\"Remove this poll from your Watchlist\" class=\"flag unflag-action flag-link-toggle\" rel=\"nofollow\"\x3eRemove from Watchlist\x3c/a\x3e\x3cspan class=\"flag-throbber\"\x3e\x26nbsp;\x3c/span\x3e\n \x3c/span\x3e\n\x3c/span\x3e\x3c/li\x3e\n\x3c/ul\x3e\x3c/div\x3e\n \x3c/div\x3e\n\n\x3c/div\x3e\n\x3c/li\x3e\n \x3c/ol\x3e\n\x3c/div\x3e \x3c/div\x3e\n \n \n \n \n \n \n\x3c/div\x3e \x3c/div\x3e\x3cdiv id=\"quicktabs_tabpage_2_1\" class=\"quicktabs_tabpage quicktabs-hide\"\x3e\x3cdiv class=\"view view-watchlist view-id-watchlist view-display-id-listview2 view-dom-id-2\"\x3e\n \x3cdiv class=\"views-admin-links views-hide\"\x3e\n \x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3ca href=\"/admin/build/views/edit/watchlist?destination=quicktabs%2Fajax%2Fqtabs%2F2%3Forder%3Dname%26sort%3Dasc#views-tab-listview2\"\x3eEdit\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"/admin/build/views/export/watchlist\"\x3eExport\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2 last\"\x3e\x3ca href=\"/admin/build/views/clone/watchlist\"\x3eClone\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e \x3c/div\x3e\n \n \n \n \x3cdiv class=\"view-content\"\x3e\n \x3ctable class=\"views-table\"\x3e\n \x3cthead\x3e\n \x3ctr\x3e\n \x3cth nowrap class=\"views-field views-field-title\"\x3e\n \x3ca href=\"/quicktabs/ajax/qtabs/2?order=title\x26amp;sort=asc\" title=\"sort by Title\" class=\"active\"\x3eTitle\x3c/a\x3e \x3c/th\x3e\n \x3cth nowrap class=\"views-field views-field-name active\"\x3e\n \x3ca href=\"/quicktabs/ajax/qtabs/2?order=name\x26amp;sort=desc\" title=\"sort by Author\" class=\"active\"\x3eAuthor\x3cimg src=\"/misc/arrow-desc.png\" alt=\"sort icon\" title=\"sort descending\" width=\"13\" height=\"13\" /\x3e\x3c/a\x3e \x3c/th\x3e\n \x3cth nowrap class=\"views-field views-field-created\"\x3e\n \x3ca href=\"/quicktabs/ajax/qtabs/2?order=created\x26amp;sort=asc\" title=\"sort by Posted\" class=\"active\"\x3ePosted\x3c/a\x3e \x3c/th\x3e\n \x3cth nowrap class=\"views-field views-field-ops\"\x3e\n Operations \x3c/th\x3e\n \x3c/tr\x3e\n \x3c/thead\x3e\n \x3ctbody\x3e\n \x3ctr class=\"odd views-row-first\"\x3e\n \x3ctd class=\"views-field views-field-title\"\x3e\n \x3ca href=\"/node/36\"\x3eDo you think the 2010 American Idol candidates are on average better than all previous years?\x3c/a\x3e \x3c/td\x3e\n \x3ctd class=\"views-field views-field-name active\"\x3e\n \x3ca href=\"/user/1\" title=\"View user profile.\"\x3ejaysadie\x3c/a\x3e \x3c/td\x3e\n \x3ctd class=\"views-field views-field-created\"\x3e\n \x3cem\x3e4 days\x3c/em\x3e ago \x3c/td\x3e\n \x3ctd class=\"views-field views-field-ops\"\x3e\n \x3cspan class=\"flag-wrapper flag-bookmarks flag-bookmarks-36\"\x3e\n \x3ca href=\"/flag/unflag/bookmarks/36?destination=quicktabs%2Fajax%2Fqtabs%2F2%3Forder%3Dname%26sort%3Dasc\x26amp;token=ccdd4b12c3a129f91aacea346a960d99\" title=\"Remove this poll from your Watchlist\" class=\"flag unflag-action flag-link-toggle\" rel=\"nofollow\"\x3eRemove from Watchlist\x3c/a\x3e\x3cspan class=\"flag-throbber\"\x3e\x26nbsp;\x3c/span\x3e\n \x3c/span\x3e \x3c/td\x3e\n \x3c/tr\x3e\n \x3ctr class=\"even views-row-last\"\x3e\n \x3ctd class=\"views-field views-field-title\"\x3e\n \x3ca href=\"/node/22\"\x3eShould the US pull its troops out of Iraq?\x3c/a\x3e \x3c/td\x3e\n \x3ctd class=\"views-field views-field-name active\"\x3e\n \x3ca href=\"/user/25\" title=\"View user profile.\"\x3etest2\x3c/a\x3e \x3c/td\x3e\n \x3ctd class=\"views-field views-field-created\"\x3e\n \x3cem\x3e1 week\x3c/em\x3e ago \x3c/td\x3e\n \x3ctd class=\"views-field views-field-ops\"\x3e\n \x3cspan class=\"flag-wrapper flag-bookmarks flag-bookmarks-22\"\x3e\n \x3ca href=\"/flag/unflag/bookmarks/22?destination=quicktabs%2Fajax%2Fqtabs%2F2%3Forder%3Dname%26sort%3Dasc\x26amp;token=8b5b15f50e654e50dd98e8677ab468ec\" title=\"Remove this poll from your Watchlist\" class=\"flag unflag-action flag-link-toggle\" rel=\"nofollow\"\x3eRemove from Watchlist\x3c/a\x3e\x3cspan class=\"flag-throbber\"\x3e\x26nbsp;\x3c/span\x3e\n \x3c/span\x3e \x3c/td\x3e\n \x3c/tr\x3e\n \x3c/tbody\x3e\n\x3c/table\x3e\n \x3c/div\x3e\n \n \n \n \n \n \n\x3c/div\x3e \x3c/div\x3e\x3c/div\x3e\x3c/div\x3e" }

pasqualle’s picture

4 main tabs, with each one having 2 sub-tabs
in sub tabs: poll form, view and ... It just won't work. sorry.

you need to change all at least the main quicktab to non-ajax mode. It will be slow, and as I see you will still have problems with the poll. The quicktab containing the poll must be in non-ajax mode also.

dankh’s picture

I can confirm this issue. I have 4 tabs all with views. Pager activated, ajax activated for all views. When I click on pager "next" content disappears. Ajax is not activated for Quicktabs.

you need to change at least the main quicktab to non-ajax mode

I tried to disable ajax for the view in the default/first tab, still having the same issue.

Here is the Ajax response when I click on "next" :

{ "status": true, "display": "\x3cdiv class=\"view view-publications view-id-publications view-display-id-block_4 view-dom-id-1\"\x3e\n    \n  \n  \n  \n  \n  \n  \n  \n  \n\x3c/div\x3e ", "title": "", "__callbacks": [ "Drupal.Views.Ajax.ajaxViewResponse" ], "messages": "" }

Drupal 6.16
Views 6.x-2.10
Quicktabs 6.x-2.0-rc4

I'm willing to help with testing, if you need further info just ask.

Thanks for the work done so far.

DFI’s picture

Well atm you can solve it like this:
-you can set Ajax load on each main tab,
-you cant set Ajax load on subtabs.

This mean that if you put any quicktab_xx with subtabs on "main tab", then set quicktab_xx with no Ajax load. And the "main tab" with Ajax load, if you want it.

This way it worked for me without any problems.

treehacker’s picture

I have a similar Problem but ONLY in Internet Explorer 8.
I have 4 Tabs, 3 of them are views list with ajax pager, the other one is just a block content.
It always shows the first tag. When I click on any other the Tab appears empty. After checking the source I saw that "quicktabs_hide" is applied to the overall DIV and not just to the tabs content div.
So.. when I enable AJAX for Quicktabs, then I works. I can switch between all tabs... But, The Views Ajax Pager doesn't work anymore. When I click to see the next page it shows me the content of another view I have on the same page. And when I disable Ajax for the views pager I have the same problem as before.
I rechecked.. and the ajax views pager and quicktabs views works on another page which does not have another views ajax page content on the site.
So I think it has to do with the correct ajax adressing...

pasqualle’s picture

@treehacker: the problem sounds like an invalid html
check you page with http://validator.w3.org/
or with the Firefox plugin: Html Validator

treehacker’s picture

I checked it, there is no invalid HTML.
And the strange thing is, that inside the tab after clicking in the ajax next page link it shows the content of another views block with ajax pager which is on the same node but in a different location. (content-bottom).
I deactivated the ajax pager on that views pager (content-bottom) and now it works fine.
Anyway... this only happens in IE 8 (below I didn't test it). Opera and Firefox work fine.

mhrabovcin’s picture

StatusFileSize
new1.48 KB

I am having same issue with Poll. Submitting poll choice will result into JSON output. Problem is caused because form is rendered with wrong context. I.e. when I have quicktabs block on node/[nid] page and poll block in QuickTabs AJAX the form is rendered after clicking on quicktab, which will render form with form action path quicktabs/ajax/block/poll_delta_0/1 instead of node/[nid]. So submit will happen on that URL which will output the JSON. This can behave as download in IE7.

Possible solution would be to pass original URL context to quicktabs and render blocks, views, etc.. with right URL context.

I am attaching example of patch which helped me to fix core Poll submission problem.

cerup’s picture

Same issue here:

I have a view with ajax pager that takes an argument (UID from url). I'm using %1 for the quicktabs argument. The first page loads fine, but clicking the pager (which uses ajax) does not return the next page. Oddly enough, it actually returns a completely different view's block that's also on the same page. Seems that there's still a conflict with multiple ajax views on a page??

Embedding the view using the following or just putting the quicktabs block somewhere, has the same problem. Putting the block on a page that doesn't have another ajax view, does work.

$qtid = 1; // write here your quicktabs id.
$quicktabs = quicktabs_load($qtid);
print theme('quicktabs', $quicktabs);

I'm currently unable to put any view with a pager inside a quicktab and make it paginate.

Is it possible to get any confirmations on this issue on what is/isn't officially broken? It's been open for more than a year so it would be nice to know what is/isn't being worked on.

dooug’s picture

I am experiencing problems with the ajax views inside of quicktabs as well.

Drupal 6.16
QuickTabs 6.x-2.0-rc4
Views 6.x-2.10

The Ajax views in the quicktabs have pagination and some exposed filters. They work fine in FF, but nothing seems to work in IE or Safari. This js error comes up in IE7 and Safari 3.2.1:

Line: 68
Char: 5
Error: Object doesn't support this property or method
Code: 0 

I tried the patch above, and it didn't seem to help. Has anything been changed in the latest dev that might resolve this?

rggoode’s picture

I think I'm having a similar problem with Quicktabs and Organic Groups...

If I view a normal table list of All Groups from the default URL for that page and then click Join (group), the URL generated for that link renders as:
DOMAIN/og/subscribe/68?destination=og%2Fall

Clicking the Join link from the resulting page successfully joins the group and returns me to the Groups listing page I started from.

However, if I view the same table listing as displayed from a Quicktabs Tab and follow the same procedure, the resulting page is similar to the text page mentioned in posts #8 and #42 ...beginning "{ "status": true, "display": "\x3cdiv class= etc"

The group is joined successfully, but the page of raw text is an unpleasant surprise.

giorgio79’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Status: Postponed (maintainer needs more info) » Active

Hello,

I am running 6 3 dev, and I am getting the same issue as the op. It seems this was only fixed in 6 2?

colorMe’s picture

Version: 6.x-3.x-dev » 6.x-2.0-rc5
Issue tags: +pagination break

I also have the similar issue. I have 2 tabs. The first tab link to node and the 2nd tab is views tab type. Pager and ajax activated for views and Quicktabs. I use table view with sorts on 2nd tab. However, when I click on pager "next" or column sort. I get a page with long line of codes. If I switch off ajax on quicktab, the pager "next" will return me to 1st tab.

Drupal 6.19
Views 6.x-2.12
Quicktabs 6.x-2.0-rc5

Is there anyway I could fix this?

Thank you.

lanzs’s picture

I faced a problem with views exposed filters inside Quicktabs - it doesn`t work! Both Views and Quick Tabs are with ajax.
I`m trying to make sort of node-updates tracking on user profile page. And for this purpose I have created two views with filters which are displayed with Quick Tabs on user profile page. First tab - system updates (any updates) with exposed filter by node type (and this filter works). Second tab - user`s nodes updates (showing any updates with node which user created) with exposed filter by node type - and this filter doesn`t work!
I`m using Views 6.x-3.x-dev and Quick Tabs 6.x-2.0-rc5

lanzs’s picture

StatusFileSize
new60.15 KB

..still trying to find out how to make these filters work...
maybe problem is connected with that second view "loading" with ajax.. I have not fully discovered yet how exposed filters works, but maybe problem is connected with "name duplications" (see attachment)?!

giorgio79’s picture

Issue tags: +pagination break

Pagination still does not work for me, even with Ajax enabled in view.

Here is the live example as requested before from others, try paging on the 2nd, 3rd... tabs. They jump back to the paging of the 1st tab:

PS: I removed Quick Tabs, so the example is no longer live. The issue still exists though with pagination included...Ajax or no ajax views does not matter.

matdab’s picture

For my case the solution would be to make it possible in QT to turn-off Ajax copmletely, as I understand non-ajax mode still uses Ajax... I need much more Ajax for pager in table which is in the middle of page, than for tabs, which are at the top of page and their reloading wouldn't confuse user... Is it possible?

pasqualle’s picture

If I switch off ajax on quicktab, the pager "next" will return me to 1st tab.

@colorMe: your view does not have ajax enabled.

pasqualle’s picture

@matdab:

make it possible in QT to turn-off Ajax copmletely

you can

as I understand non-ajax mode still uses Ajax

no

Is it possible?

yes, enable ajax in your view only

mrjeeves’s picture

I have programmatic tabs (views custom field), inside ajax views, inside ajax tabs. i've had to make a few alterations to quicktabs to support this, but if anyone is interested, i would be happy to share. the video on the homepage of bizstormz.com shows this function, the popout window is a tabset, with an ajax views accordion inside, with programmatic tabs inside each accordion.

ydnar79’s picture

@mrjeeves

Please do share.... I have been experimenting with several different approaches of quicktabs / views and your approach sounds quite interesting....

mrjeeves’s picture

StatusFileSize
new1.25 KB

the main issues that I ran into relate to the order of execution on the client. To this end, I have found a method that deals with this by merging ajax retrieved settings into the DOM prior to callbacks being made. see attached (patched against the latest 6.x-3.x snapshot, rollbacks to 2.x on request)

mrjeeves’s picture

Status: Active » Needs review

forgot to tag

midmood’s picture

subscribe

mazdakaps’s picture

subscribe

JacobSingh’s picture

I had the same issue. The problem is that the view_dom_id is what views uses to figure out which settings to apply. This is a counter, it is not a machine name. since views will generate it every time, tab1 will be view-dom-id-1, tab2 will be view-dom-id-1, etc... Basically it sucks.

I'm sure there is a way, but I don't know what it is yet :)

Patch above doesn't work for me, causes an error.

Offlein’s picture

Subscribing.

bakr’s picture

By the way, I was having ajax pager issues for a view inside a quicktab.
and patch in #63 has FIXED it. thanks alot :)

On the other side, I still face an issue in the following scenario:
#1423882: Ajax Broken (Views inside a quicktab inside a panel)
See me comment below the above issue.

bakr’s picture

i have deleted the following folders under site\all\modules

  1. views
  2. panels
  3. quicktabs

then i have redowloaded the latest 6.x stable releses

then cleared the cache of my browser and for drupal

and applied patch #63

it is finally solved... hurray

  • no more i have pager issues for views inside quicktabs
  • no more i have json dump on whie screen
  • all browsers work fine, chrome,ff,ie9
bakr’s picture

Status: Needs review » Reviewed & tested by the community

Earlier, I thought am the only person facing this issue on earth !!!

I also suspected "Panels" Module, though not convincing my self, so I posted a bug at the panels issue queue, interestingly I got this reply, which was sounding very logical and pinpointing to an issue in quicktabs:

#1423882: Ajax Broken (Views inside a quicktab inside a panel)

I really liked the comment of merlinofchaos:

Not only is that dump a serialized json object, it's the response from Views' AJAX when it's rendering a view. This is strange because you should not be rendering a view while editing a Panel.

This may be an issue with quicktabs' Panels integration. Quicktabs should not be trying to render this kind of thing during panel edit.

bakr’s picture

Title: problems with ajax views inside ajax quicktabs (pagination) » problems with ajax views inside ajax quicktabs
Priority: Major » Normal

Well, the issue is still exhibiting itself intermittently.

{ "status": true, "display": "\x3cdiv class=\"view view-view-be-tickets view-id-view_be_tickets view-display-id-panel_pane_1 view-eu-tickets view-dom-id-1\"\x3e\n      \x3cdiv class=\"views-admin-links views-hide\"\x3e\n      \x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3ca href=\"/hd/?q=admin/build/views/edit/view_be_tickets\x26amp;destination=views%2Fajax%3Fjs%3D1%26page%3D1%26view_name%3Dview_be_tickets%26view_display_id%3Dpanel_pane_1%26view_args%3D%26view_path%3Dviews%252Fajax%26view_base_path%3Dnull%26view_dom_id%3D1%26pager_element%3D0#views-tab-panel_pane_1\"\x3eEdit\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"/hd/?q=admin/build/views/export/view_be_tickets\"\x3eExport\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2 last\"\x3e\x3ca href=\"/hd/?q=admin/build/views/clone/view_be_tickets\"\x3eClone\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e    \x3c/div\x3e\n    \n  \n  \n      \x3cdiv class=\"view-content\"\x3e\n      \x3ctable class=\"views-table sticky-enabled cols-7\"\x3e\n      \x3ccaption\x3eWF State: Closed\x3c/caption\x3e\n    \x3cthead\x3e\n    \x3ctr\x3e\n              \x3cth class=\"views-field views-field-edit-node\"\x3e\n    
.
.
.
.
: true, "misc/farbtastic/farbtastic.css": true, "sites/all/modules/calendar/calendar.css": true, "sites/all/modules/extlink/extlink.css": true, "sites/all/modules/jquad/css/jquad.css": true, "sites/all/modules/cck/modules/fieldgroup/fieldgroup.css": true, "sites/all/modules/views/css/views.css": true, "sites/all/modules/admin_menu/admin_menu.css": false, "sites/all/modules/hierarchical_select/hierarchical_select.css": true }, "theme": { "sites/default/files/customcssjs/css/basic.css": true, "sites/default/files/customcssjs/css/basic_ie.css": true, "sites/default/files/customcssjs/css/jquery.gritter.css": true, "sites/default/files/customcssjs/css/misc.css": true, "sites/default/files/customcssjs/css/sexyalertbox.css": true, "sites/all/modules/fixcore/fixcore-multiselect.css": true, "sites/all/modules/fixcore/fixcore-node_unpublished.css": true, "sites/all/themes/summertime/style.css": true, "sites/all/themes/summertime/local.css": true } }, "print": { "module": [  ], "theme": { "sites/all/themes/summertime/print.css": true } } }, "messages": "\x3cdiv class=\"views-messages\"\x3e\x3cdiv class=\"messages status\"\x3e\nThe view \x3cem\x3eview_be_tickets\x3c/em\x3e has been saved.\x3c/div\x3e\n\x3c/div\x3e" }

But after applying the patch, the body of the dump if different, as you can see that ... which indicates a progress. ... hmmm the patch needs further refining

bakr’s picture

Priority: Major » Normal

In Clarifying further about the root cause of the continued issue as and when it exhibits it self (#72)

I am sharing this finding with community to re-create the same bug.

First, as mentioned earlier (the patch #63) works, though partially.
That remaining dysfunctioning part still needs some work, I think I have found how to reproduce it:

Bug Reproduction Scenario

Environment

  • Views
  • Panels
  • Quicktabs
  • Block Edit

So, as usual, we assume that you have created a view (ENABLE PAGINATION) and put it inside a quicktab which resides inside a panel page....okay? ... Now ...

  • browse to the panel page
  • hover the mouse over the view.... you shall see [edit] [export] [clone]
  • click on [edit] as if you want to modify the view, this will send you to the views module query wizard page, and look at the URL, it has the suffix: &destination={blah blah blah}, that destination URL shall point to the place where things break at page rendering level
  • Save the View
  • Enjoy the JSON WHITE SCREEN DUMP

If you have not enabled pagination; then (assuming you have applied the patch); then no JSON Dump shows up, as the patch saved you already, but without the patch, it was worse.
------------
Now we conclude, that having the pagination enabled; things break again, this means the URL construction for the &destination is maybe faulty. or some other work needs to be done here.

bakr’s picture

Priority: Normal » Major
bakr’s picture

Title: problems with ajax views inside ajax quicktabs » problems with ajax views inside ajax quicktabs (pagination)
Priority: Normal » Major
marceldeb’s picture

Title: problems with ajax views inside ajax quicktabs » problems with ajax views inside ajax quicktabs (pagination)
Version: 6.x-2.0-rc5 » 6.x-3.1
Priority: Normal » Major
Status: Reviewed & tested by the community » Active

Problem still there, also see post: http://drupal.org/node/1439302

Fidelix’s picture

Status: Active » Reviewed & tested by the community

Did you apply the patch?
I guess no.

marceldeb’s picture

Thanks for the response.
After applying the patch i get this error in firefox:

response.scripts is undefined
$.extend(true, Drupal.settings, response.scripts.setting);
marceldeb’s picture

Status: Reviewed & tested by the community » Needs work
mrjeeves’s picture

After looking into some of the new comments again, I've found that the load order is not the ONLY thing that can potentially go wrong on this issue. I'm wondering if that patch would be good to get committed anyway just to set a more stable foundation for working on the other issues raised here. On that note, I believe some more robust error handling may be an order in the event that certain instances don't need some of the settings or may not contain response scripts. At this point though I'm pulling at straws until I can properly reproduce the errors in my environment.

bakr’s picture

Agree with #80

marceldeb’s picture

I also agree with #80.
Is there anything i can do to help? (making a movie of the error? send logs? etc.)

mrjeeves’s picture

StatusFileSize
new98.48 KB

Ok, I think part of the issue I'm having is that I've made changes to a bunch of the code in the modified module I'm using. I've carefully commented my edits with // EDIT [ADDED,REMOVED,END] // tags, would someone be interested in seeing the module I created that deals with these issues, adds all kinds of ajax sensitivity as well as working with wysiwyg editors and full node edit pages? I'm not entirely sure that all my edits are safe for patches and I don't have enough time right now to sort it all out. heavily modified quicktabs module is attached.

From what I remember, most of the changes are in the quicktabs.module and quicktabs.js files.

marceldeb’s picture

Guys! I have a MAYOR breaktrough on this issue.

When i compared the urls (mouse over pagination, copy url to clipboard) of the pager inside a quicktab which worked and a pager inside a quicktab which did not work the following result was visibile:

Working AJAX pager request:
http://localhost/quicktabs/ajax/block/quicktab_stagiair_home/views_delta_51e850cdfbd3a573fa745c[..edit]

Not working AJAX pager request:
http://localhost/ajax/block/quicktab_stagiair_home/views_delta_51e850cdfbd3a573fa745cb3824ee2ee/1?page=2&js=1&[..edit]

It turned out that the request is not being send to the correct URL. Then i wondered what the difference was (why in some cases the '/quicktabs' is added to the request and sometimes it is not). It has to do with the used tab type inside the settings of the quicktab. The following options (for each tab can be set) are available: Block - Node- QTab - QT Callback - Views

When the 'views' option is used, the pager generates a NON working request. However if i put the view (in views) inside a 'block' and in quicktabs i use the 'block type' tab it IS working!!

I hope this also solves anybody else's issues. Let me know if you need more details.

mrjeeves’s picture

what patches or changes (if any) have you used? if this is a default module out-of-box then I would have to agree that this *is* a major breakthrough.

marceldeb’s picture

I've not used any of the patches, just the latest stable release (6.x-3.1).
I'm now starting to think that this might be a views issue instead of a quicktabs issue.

mrjeeves’s picture

the first url is working because quicktabs is catching and handling the click/ajax, the second is not working because quicktabs is not catching the click and therefor gives you the views json dump. the second is actually a views ajax link, (i think) I think this may be enough of a use case to help me reproduce the issue, I just need to take the time to setup and 6.x box and test it. (i'm not at my normal working machine ATM)

bakr’s picture

I am very happy the issue is getting circled.
Quicktabs is a big addition to drupal interface.

Michsk’s picture

@84, doesn't seem to work for me, and that is the way i always use quicktabs with views.

omar’s picture

I am getting these JSON dumps when trying to save any changes to a view used in the quicktabs. The key is the "Ajax" setting in the quicktab.

(No patches applied)

Using "Yes: Load only the first tab on page view" results in the problem (whether or not the views displays themselves are configured to use AJAX or pagination)

Using "No: Load all tabs on page view" I don't experience the problem (again whether or not the views displays themselves are configured to use AJAX or pagination).

jjosephmiller’s picture

I'm seeing the same issue as #90. "Yes: Load only the first tab on page view" renders the first block. Clicking on the other tabs brings up the loader bar, but no content.

My views are blocks and they all have Use AJAX checked to yes. The blocks are not using any AJAX at all.

When I set the quick tab to "No: Load all tabs on page view" everything works as it is supposed to.

mtift’s picture

The solution described in #90 and #91 worked for me as well.

chezwel’s picture

Setting the quick tab setting to "No: Load all tabs on page view" will get rid of the JSON dump, but because of the size of some views that users may have this will dramatically increase load time and bandwidth usage. There still needs to be a fix for the "Yes: Load only the first tab on page view" option to have multiple ajax pagers.

japo32’s picture

My problem was I had quicktabs in a block which loaded a view "page" that had exposed filters with a hierarchical select. When the exposed filters were applied, rather than refreshing a section of the page with ajax, the page forwarded to the view "page".

The solution as stated above:

  1. was to recreate the view "page" as a view "block"
  2. , enable ajax on that new block view.
  3. use the view "block", instead of the view "page"

shazzam! thanks guys and gals!

leelooch’s picture

how do I pass arguments from path to the view if quicktab sees it as a block ?

sumitmadan’s picture

I have created a views that have 4 blocks. 2 block have pagination in it. Pager working fine with 1st block but not with 2nd block. Pagination not working in IE8 only in 2nd tab.

The problem occures if view has something in footer. I removed the footer and it worked fine.

sumitmadan’s picture

Problem Soved. Span tag of HTML in views footer was not closed.

brandy.brown’s picture

I have the same problem in 7.x-3.4
I am using one view with different arguments on each tab. Another thing I noticed with my quicktabs instance is that the exposed filters do not get reset from tab to tab. So if I selected a filter on tab one and click apply, then go to tab two, my last chosen filter is selected, but the results are not displaying as though that filter is selected.

vaneetha’s picture

I got {status:true;data:null} error while clicking next page on pagination.
help me out from this prob

netw3rker’s picture

Version: 6.x-3.1 » 6.x-3.x-dev
Issue summary: View changes
avpaderno’s picture

Status: Needs work » Closed (outdated)

I am closing this issue, since it's for a Drupal version no longer supported.