We have a vertical ticker on our site that works perfectly usual. But in case with some AHAH process works on the same page (AHAH form, views qith ajax calls) there are pronlebs. After the AHAH process finished working, ticker starts to duplicate items, sometimes a dozen of same item is produced.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | views_ticker-Fixed_coding_standards-1395054-11.patch | 3.28 KB | fullerja |
| #11 | interdiff-1395054-3-11.txt | 2.66 KB | fullerja |
| #3 | views_ticker-broken_on_ajax-1395054-3-D7.patch | 1.95 KB | ckng |
| #3 | views_ticker-broken_on_ajax-1395054-3-D6.patch | 1.71 KB | ckng |
| #2 | duplicate.jpg | 181.85 KB | migdesigns |
Comments
Comment #1
kt2ssh commentedtry this trick
change the id of the views-ticker view before running the ajax
$("#views-ticker-vTicker-name").attr('id','abc');
Comment #2
migdesigns commentedThis is happening when ever ajax is used, whenever the ticker is on a page with a map, and when a picture is opened in colorbox...I have attached a picture of how it duplicates. Kt2, where would you make that change?
Comment #3
ckngTicker will break on any ajax related operation.
Attached patch for D7 and D6, against latest dev.
Comment #4
ltwinner commentedYea have this problem too, its definitely a critical issue, views ticker is effectively broken on any page that uses other AJAX functionality. Is this module even maintained anymore, I see there hasn't been any commits in a year...
Comment #5
lorisbel commentedIt works for me on D7. Thank you!
Comment #6
japo32 commentedThank you! this should be committed to the next dev release.
Comment #7
ckngThen help test and mark it as RTBC.
Comment #8
japo32 commentedOk I'll gladly do that. But can you guide me on the official steps to do it? is there a correct protocol? Novice here. :)
Comment #9
ckngRead http://drupal.org/patch/review & http://drupal.org/node/156119 ;)
Comment #10
mesch commentedAnother alternative is to use Drupal 7's new
hook_js_alter()hook to modify the javascript, thereby avoiding the need to patch the module.A site I was helping with recently had a bbc ticker running which acted up when ajax was triggered. The following code snippet did the trick:
Comment #11
fullerja commentedRe-rolled for coding standards (D7 version only)
Comment #12
bneil commentedComment #13
bneil commentedComment #14
bneil commentedThe patch in #11 works well for me. I no longer receive the duplicate nested divs.
Comment #16
bneil commentedComment #18
gaurav_drupal#3 worked for me. Thank You so much. You saved my time.