Closed (duplicate)
Project:
Ajax Load
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2009 at 11:20 UTC
Updated:
2 Dec 2010 at 01:58 UTC
When i enable ajax load, my views display tabs start to behave strangely.. with first click it loads nothing, and with the second click
it loads the tab i clicked with first click.. do you have any clue why this would happen?
I have posted longer description to views display tabs issue queue, but so far no reaction from that side..
Comments
Comment #1
bfr commentedUpgraded to dev but did not fix
Comment #2
markus_petrux commentedI do not use Views Display Tabs myself, so I cannot tell. However, if it does not work, then it is probably doing something wrong.
Ajax Load module is used by Views to dynamically load css/js files that are not already present on the page when using the Views Ajax feature. I cannot see how this may break other modules. The problem may come from something that's loaded by Ajax Load module. But that may only happen after an AJAX request that uses Ajax Load module. If you see something wrong the first time the page is loaded, then Ajax Load has not been invoked, yet. So the error might be related to something else.
Someone needs to debug this, for example using Firebug, to see what's really happening.
Comment #3
markus_petrux commentedPlease, follow the evolution of this issue here #591042: ajax_load module brakes display tabs(Need to click tabs twice).
The issue in the Ajax Load module queue can be re-opened when we do have evidence that's really a bug here.
Comment #4
bfr commentedActually, the first click works(first change of tab), and the rest wont.
I think views display tabs also uses ajax, but not ajax_load module, could that cause something?
This happens even if i dont enable any modules that uses ajax load module(or atleast none claim to use or require it)
Comment #5
markus_petrux commentedRe: "I think views display tabs also uses ajax, but not ajax_load module, could that cause something?"
Yes and no, it depends.
If a click that triggers an AJAX requests needs to fecth css/js files that are not already on the page, the AJAX callback needs to make use of Ajax Load when preparing and sending the AJAX response. Otherwise, since these css/js components do not exist in the context of the current page, so the new content may not work as expected.
Ajax Views (that deals with exposed filters and pagination) makes use of Ajax Load for this reason. See views_ajax() in views/includes/ajax.inc
If Views Display Tabs module uses AJAX, then it may also need to use Ajax Load.
Comment #6
hixster commentedStill seems this is broken, as I just discovered. My pages get totally mangled when Ajax load is enabled with VDT, and I need to use both..
Is there an update or thread I should look at for a fix?
update: Is there a way to specify which pages the ajax load is used on. I really on require it on 2 pages that use reCaptcha as AL fixed other issues I'm experiencing with that module