Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello.
Sorry for my english i am french.
I found a bug in the module. At the first click there is no problem. The second click, the page is loading two times. The third click, the page is loaded 4 times. So on. This slowed considerably navigation.
French version : J'ai détecté un bug dans le module. Lors du premier clique il n'y a aucun problème. Au deuxième clique, la page est charger 2 fois. Au troisième clique, la page est charger 4 fois. Ainsi de suite. Cela ralentie considérablement la navigation.
Thank you
Comment | File | Size | Author |
---|---|---|---|
bug module ajax.png | 64.61 KB | sebastien247 |
Comments
Comment #1
fotisphello there,
I was facing a similar problem, i'm loading some blocks that containing the ajax links into node.tpl
Everything was working fine exept the multiple load when clicking the ajax links ..
Based on http://www.electrictoolbox.com/jquery-prevent-ajax-request-firing-twice/
i modified the ajax_links_api.js
I'm not a coder, however it makes the trick for me.
thanks,
F
Comment #2
sebastien247 CreditAttribution: sebastien247 commentedThis code doesn't work for me. i've modified this one
this one works for me
Comment #3
serjas CreditAttribution: serjas commentedComment #4
serjas CreditAttribution: serjas commentedHi sebastien247,
I cant reproduce issue. Can you give details how to reproduce same issue?
Comment #5
pipicom CreditAttribution: pipicom commentedHave the same problem; fotisp solution seems to work for me also.
Comment #6
fotispHi serjas,
It seams that the problem occurs when the ajax links are inside the ajaxible content area. (so the links are reloaded)
Thx
F
Comment #7
serjas CreditAttribution: serjas commentedThanks @fotisp
Committed to 7.x-1.x . please review
Comment #8
serjas CreditAttribution: serjas commented@fotisp
@sebastien247
@pipicom
Please review
Comment #9
pipicom CreditAttribution: pipicom commentedLatest dev works for me!
However even I have removed your comments on 'ajax_links_api.js', I cannot make the H1 title refresh properly..
Comment #10
serjas CreditAttribution: serjas commentedApplied to 7.x-1.5 (http://drupal.org/node/1831952)
:)
Comment #11
serjas CreditAttribution: serjas commented@pipicom , please post the issue in http://drupal.org/node/1808310 . It works only for HTML5 browsers. I think it is still unsupported in major browsers. Works fine in Chrome 22.0
Comment #12
pipicom CreditAttribution: pipicom commentedYou 're correct.. Thanks for the prompt answer (again!)..
Comment #13
sachbearbeiter CreditAttribution: sachbearbeiter commentedwasn't there a convention to work with this classes?
http://drupal.stackexchange.com/questions/29348/jquery-code-is-loading-c...
anyway - thanks for fix ...
sb
Comment #14
windmaomao CreditAttribution: windmaomao commentedI had the same issue, the page will load slower and slower and slower.
Basically i have a block and content region, and the link is inside block. It's weird it'll cause this issue. Because my link isn't in the content.