- This topic is empty.
-
AuthorPosts
-
August 28, 2014 at 7:36 am #180922
jessicav21
ParticipantHi, working on my school website and I have gallery buttons that are linked to external sites although a light box comes up. Does anyone know an easy fix? I remember troubleshooting this last year and am at a loss for a quick fix. Thank you in advance.
August 28, 2014 at 9:08 am #180934Paulie_D
MemberI have gallery buttons that are linked to external sites
Not sure what that means…
I’m not entirely clear what it is you are trying to do.
August 28, 2014 at 9:20 am #180937jessicav21
Participanthttp://www.westosha.k12.wi.us/cocurricular_news/clubs/clubs1.html
Click on ABS “Join Now” button and it comes up with a light box instead of referring it to the destination URL
August 28, 2014 at 11:17 am #180942Paulie_D
MemberHmmm…it’s not a lightbox per se it’s a link to a document in a google docs folder. That will tend to try to open as a pop-up in most modern browsers.
I’d find another way of having those forms linked..especially as one has to have permission to view them, which the casual visitor would not have.
So, what were you expecting the ‘links’ to do when they were clicked?
August 28, 2014 at 11:50 am #180946jessicav21
ParticipantOkay that’s interesting. Are you getting to the Google doc? The students within the district can access the google docs and will not need permission.
Is there any way to prevent the pop-up window and just open a new tab?
August 28, 2014 at 12:02 pm #180947Paulie_D
MemberYou would have to add
target="_blank"
to each link..I thinkAugust 28, 2014 at 12:08 pm #180948jessicav21
ParticipantYes, they are already target-“blank”. So this is a browser issue?
August 28, 2014 at 12:21 pm #180950__
ParticipantYes, they are already target-”blank”
“
blank
” or “_blank
“? It makes a difference.So this is a browser issue?
Not an “issue” so much as how it was intended to work.
August 28, 2014 at 12:27 pm #180951jessicav21
Participant_blank – I use Dreamweaver CS6
August 28, 2014 at 12:29 pm #180952jessicav21
ParticipantIf I right click over link and select “Open Link in a New Tab” It goes to the Google form.
August 28, 2014 at 12:37 pm #180953Paulie_D
MemberWell that’s what
target="_blank"
is supposed to do…guess it might be turned off in some browsers.August 28, 2014 at 12:45 pm #180956Paulie_D
MemberHmm…consensus (after a swift Google is not to use ‘target’) as it”s usually left to the browser to decide unless specifically differently by the individual user.
JS seems to offer a solution
onclick="window.open (this.href, ''); return false"
but I dislike inline JS.
I’d prefer to see this abstracted away into a separate JS/JQ script.
See here – http://www.copterlabs.com/blog/easily-create-external-links-without-the-target-attribute/
It’s pretty simple
Alternatively, you seem to be saying that visitors will be permitted access to the documents so you could just leave it and ignore your discomfort because you don’t like the effect.
August 28, 2014 at 1:57 pm #180960ThatCat
ParticipantThat lightbox is for IMAGES. Why use a Lightbox image gallery for make an “_blank” link?
I think you are searching an “iframe lightbox”. I recommend “fancybox“.August 28, 2014 at 2:14 pm #180961Paulie_D
MemberWhy use a Lightbox image gallery for make an “_blank” link?
It isn’t a lightbox at all and isn’t intended to be. It’s a link to a document which the browser is trying to open in the same page as a pop-up.
Not the same thing at all.
August 28, 2014 at 4:27 pm #180968Soren
ParticipantApologies if I’ve misunderstood!
Is there any way to prevent the pop-up window and just open a new tab?
You’ve seen this in your code, right? (below “Computer Code” div)
$(function() { $('.gallery-grid a').lightBox(); });
You’re telling the links to behave like a lightbox.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.