Download & Extend

Javascript and target link content gets loaded multiple times from Views

Project:Colorbox
Version:7.x-1.3
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I created a unfomated list (list of articles) in a Views to call each article in a colorbox. colorbox-load as rewrite link-class (for example for the titles) in Views works to open original content (as a View too) in colorbox.
But, once I open a colorbox and then close it,the second time I open it, it seems to request the destination URL twice, if I do this three times, then it does performs the request three times and so on. That means it opens several colorboxes with the same content.
Setting "?width=500&height=500&iframe=true" like recommended in http://drupal.org/node/1398020 doess not work.

This is making my application unusable after little time using it, so it's a pretty bad issue.

Comments

#1

#2

are you sure you set the class to "colorbox-load"? right now it looks like "colorbox-inline"

you also might want to investigate using http://drupal.org/project/colorbox_node if the articles that you are trying to open are nodes

#3

Thanks dolly nyc,

yes- I've already tried colorbox-load and colorbox-inline. I'll try http://drupal.org/project/colorbox_node but it really seems more like a Ajax- problem.

More sugestions are very wellcome.

#4

http://drupal.org/project/colorbox_node doesn't solved the problem.

#5

You are opening a complete web page in a Colorbox.

When you do that you must use iframe, there is no way around that.

#6

Thank u frjo,
But also using iframe doesn't solve the problem of opening multiple colorboxes with the same content.

#7

@Sue_W Your site still has links using the class "colorbox-inline" not "colorbox-load", and the links don't include "iframe=true"--double check your links and rewrites maybe

also look at http://drupal.org/node/1057418 -- especially last comment #34
you might want to add "colorbox=no" to the link too

#8

AttachmentSize
colorbox.JPG 45.13 KB

#9

dolly nyc u were right:

and the links don't include "iframe=true"

But how did u manage to include ?width=500&height=500&iframe=true&colorbox=no in the Views links?

#10

there are several ways to do it -- try this:
In your view, you have the Title which is the link you use to open the colorbox, correct?
Under "Rewrite Results" of that field, check "Output this field as a link"
then in "Link Path" put "[path]?width=500&height=500&iframe=true&colorbox=no"
and in "Link class" put "colorbox-load"

see if that works

#11

adding colorbox=no worked for me.

Idan

#12

Assigned to:Sue_W» Anonymous
Status:active» fixed

#13

Status:fixed» closed (fixed)

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

nobody click here