lightbox

I can't get Backbone.js events to trigger when the View is within a Fancybox

浪子不回头ぞ 提交于 2019-12-06 08:13:43
I have a Backbone View that renders within a Fancybox. I can click on an anchor tag and it will work but events in the Backbone view won't trigger. I've had the same problem with ShadowBox and another lightbox that I can't remember. Any thoughts? var LightboxItemView = Backbone.View.extend({ className : 'lighbox-item', events : { "click .lightbox-preview" : "visitItemPage" }, initialize : function() { _.bindAll(this, "render"); this.render(); }, visitItemPage : function() { console.log('visiting time'); }, render : function() { var graphicPreview = $('<img>'); graphicPreview.addClass('lightbox

jQuery Colorbox, iframe content not scrolling in iPad

心不动则不痛 提交于 2019-12-06 04:54:26
问题 Colorbox iframe content does not scroll when viewed on iPad please read below: https://github.com/jackmoore/colorbox/issues/41#issuecomment-5244379 When displaying a web page that is larger than the dimensions set for the colorbox from an Ipad, the ability to scroll is disabled and/or does not exist. Some might suggest one finger or two fingered scrolling, this does not work. Pre-reqs: Own an Ipad, or go down to local best buy Steps to reproduce: Go to http://colorpowered.com/colorbox/core

How to place autocomplete menu above the text input?

不打扰是莪最后的温柔 提交于 2019-12-06 02:36:33
问题 Is there any way to display the Autocomplete result set above the text input? The problem is that I am using it in a lighbox application. The background element being set to 100% of the pages' height and width, it will naturally not expand with its content. So if the content above the text box increases so much that the input is forced towards the bottom of the page, and then the user types something into it, the autocomplete menu appears, and the input being towards the end of the page, the

lightbox no image just text?

半世苍凉 提交于 2019-12-06 02:34:08
问题 I am currently using light box provided by ... http://leandrovieira.com/projects/jquery/lightbox/ How do I have it so that if I click on a work it brings up the light box and shows text instead of an image? what I want is the terms and conditions shown up in a lightbox. HTML <span id="terms"> <a href="">Terms & Conditions</a></span> jQuery $(function () { $('#terms a').lightBox(); }); 回答1: It seems like this lightbox plugin only works with images. You should choose another plugin like

Paypal preapproval payment using embeded Light box

做~自己de王妃 提交于 2019-12-06 01:31:24
问题 I am working in embedded adaptive preapproval payment now the issue I am facing is how to implement preapproval payment using light box. I have implemented pay action by setting paykey using light box its working good, but same the thing I have followed with little modification in code for preapproval request was not working light box get hangs up. kindly let me know what I am missing here. HTML code: <html> <head> <script src="https://www.paypalobjects.com/js/external/dg.js" type="text

Jquery: Add rel attribute to <a> tags within all <li> tags of a certain class

夙愿已清 提交于 2019-12-05 17:22:26
I'm trying to add a rel="lightframe" attribute to all my 'edit' links within my admin_links_node_edit class. <li class="admin_links_node_edit"> <a href="[link]" title="Edit">Edit</a> </li> My code so far looks like this: $('.admin_links_node_edit a').each(function() { $(this).attr('rel','lightframe'); }); You don't need to use each(). jQuery's selectors will do it for you :) $('.admin_links_node_edit a').attr('rel', 'lightframe') The above code will do the trick. If admin_links_node_edit is reused among other elements, you'll want to specify the element you're working on ( li in this case). In

Passing data to Bootstrap Modal without JavaScript

主宰稳场 提交于 2019-12-05 05:32:53
问题 I have a grid with image links on my page. When clicking one of them a modal should pop up with the image but in big format. Now I'm trying to achieve this without the use of javascript/jquery but just with data-attributes. At the moment I have this code: <!-- Generating the image link with PHP (laravel) --> <a data-toggle="modal" href="#myModal"> {{ HTML::image("img/$photo->Link", "$photo->Title", array("class"=>"thumbnail col-md-3")) }} </a> <!--The modal --> <section class="row"> <div

Accessible, mobile-friendly lightbox?

南楼画角 提交于 2019-12-05 03:49:20
Is there any lightbox solution (along the lines of Fancybox, etc.) that is both accessible (VoiceOver & JAWS, etc., compatible, with perhaps WAI-ARIA roles) and mobile-friendly? Bonus points for being a jQuery plugin. It might be too late for you but I'll answer for people who may land here from Google search: recently I used NETEYE Touch-Gallery and it worked pretty well, at least on iPhone and Android. I am making the same research at the moment to integrate into our project! I have looked at a lot of them and so far my favorite in terms of quality is: Swipe box http://brutaldesign.github.io

Is it possible to lightbox many images but only show one image to activate them?

家住魔仙堡 提交于 2019-12-05 02:30:36
I'm using Lightbox to display photos. So If I have two categories of photos, "work" and "vacation", I would do... <a href="images/image-1.jpg" rel="lightbox[work]">image #1</a> <a href="images/image-2.jpg" rel="lightbox[work]">image #2</a> <a href="images/image-3.jpg" rel="lightbox[work]">image #3</a> <a href="images/image-4.jpg" rel="lightbox[vacation]">image #4</a> <a href="images/image-5.jpg" rel="lightbox[vacation]">image #5</a> <a href="images/image-6.jpg" rel="lightbox[vacation]">image #6</a> This displays 6 images, and when I click one of them, it starts the Lightbox. However, I'd like

Extend Fancybox inside an iFrame to outside

狂风中的少年 提交于 2019-12-05 02:03:54
问题 I got stuck in a problem here. I have a fancybox inside an iFrame, and it works normally, but I need it to extend outside the iFrame so it can fill the whole screen (I mean extend to it's parent). Does anybody knows how to do that? 回答1: If both the page and the iframe are in the same domain, you can open the fancybox window in the parent from inside the iframe. Check out the demo. Parent Window (contains fancybox script, css and iframe) <iframe src="child-page.htm" height="250" width="500"><