FAQ Database Discussion Community


Trigger scope functions from JS outside the controller

jquery,angularjs,colorbox
I've seen other responses to this on SO, but either I didn't understand how those responses worked in my situation or I'm overthinking this; scopes have always been a poor point of mine. I'm currently using colorbox for modal windows, containing iframes. To use it in angular, I created an...

jQuery Colorbox Buttons

jquery,html,button,colorbox
I'm trying to use jQuery Colorbox as a lightbox but the left, right and close buttons are not showing up at the bottom (click "dasdsadsa"): http://zero6media.com/gee/wordpress/joes-calculator/ However, if I use the same code in a fiddle it works: http://jsfiddle.net/4k1ty7wf/ jQuery(document).ready(function(){ jQuery("a[class='web']").colorbox({width: "600px", height: "600px", maxWidth: "95%", maxHeight: "95%", html: "Hello",...

Disable keyboard shortcut when Colorbox Event is fired and then Restore it when another Event fires?

javascript,jquery,colorbox,keyboard-events
I am using the jQuery Colorbox library which is a library of creating Modals that can load images and other content in a nice popup modal window. I am using it on my portfolio/projects page to allow clicking on a screenshot image and it will load a larger view of...

Colorbox closing issue

html,colorbox
jQuery Colorbox not close after form submit and not redirected me to parent page. I want colorbox if form inputted data will be wrong. I am calling login.html directly in colorbox. My code is below. Html Page One. <ul> <li class="call-login-popup"><a href="#">Login</a></li> </ul> <script> $(document).ready(function() { $(".call-login-popup").colorbox({ iframe: true, width:...

BlockUI when using a popup from serverside

jquery,asp.net,colorbox
I am using an UpdatePanel to block the UI on a long process, my problem that is it works when I put a simple button, but when the button is within a popup it doesn't work(simply gets stuck untill the process is done without blocking the ui). Code that works:...

cant focus on tinymce inside colorbox

jquery,tinymce,colorbox
I am creating a tinymce editor inside a colorbox. The first time the colorbox loads up, it works fine. Subsequent times, I can't click or tab to get focus on the tinymce editor. I am using tinymce.EditorManager.execCommand('mceAddEditor', true, 'tbContent'); and tinymce.EditorManager.execCommand('mceRemoveEditor', true, 'tbContent'); to create and remove the editor when...

Pass selection from Colorbox to parent

javascript,php,jquery,colorbox
I am using a Colorbox modal for a image selection in one of my forms. Is there a way to dynamically pass the image selection outside of the Colorbox and then close the Colorbox? I have been searching here on StackOverflow but I cant find anyone else trying to achieve...

Python - add colorbars in multiple plots for each plot

python,matplotlib,colorbox,subplot
I have multiple plots on a figure. I would like to add colorbars for each results. These colorbars must have the same height of my results and i would like to limit the numbers displayed on the colorbar to 3 values (in order to have readable figures). My code is...

Simple Javascript function is not working on .ascx file

javascript,asp.net,vb.net,colorbox,ascx
I am trying to make a simple javascript function work in the .ascx file in my asp.net and vb.net application. I have included the following html code inside the asp panel tag. <div class="inline" > <asp:CheckBox ID="tick" runat="server" Text="Please tick the box to confirm the above information are correct" Checked="false"...

Drupal , something wrong with ajax popup forms, how to fix?

ajax,drupal,colorbox
I have site with Drupal 7, Colorbox and Webform modules. I use it like it <a class="colorbox-node" href="/node/25?width=600&height=400">Call me</a> The problem is, when my form popped up i see error message: "This form could not be submitted because $_POST was truncated to 115 input vars. PHP max_input_vars is 3000 and...

Impresspages: Grouping images on single page, in ColorBox

lightbox,colorbox,impresspages
On an impressPage's site homepage, I am listing many items; each item with their own set of pictures. When an image for an item is clicked, lightBox is opened accordingly, but you can cycle through all the images on the page, as opposed to just cycling through a single item's...

VideoJS - embedded videos not working after number 7

colorbox,video.js
I have a page with 10 videos. They are loaded in colorbox lightboxes. I am using the standard videoJS markup. Loading videos via: <a href="#video1" class="inline">View</a></li> and: <div id="5ways" style="height: 348px"> <video id="5ways" class="video-js vjs-default-skin" controls preload="auto" width="618" height="348" data-setup="{}"> <source src="//contiki-downloads.s3.amazonaws.com/agent/training-tools/video/5ways_converted.mp4" type="video/mp4"> <source...

jQuery Colorbox randomly fails to group images

javascript,jquery,colorbox,opera-presto
I use the jQuery Colorbox in my application, like so: <ul> <li> <a href='images.html?cn=000001' >[000001] </a> - <a href='/folder/1/Appreciation.jpeg' class="imagelnk">Appreciation.jpeg</a> </li> <li> <a href='images.html?cn=000001' >[000001] </a> - <a href='/folder/1/cheque.jpg' class="imagelnk">cheque.jpg</a> </li> </ul> Over in javascript, inside .ready(), I have this: $('a.imagelnk').colorbox({ rel: 'imagelnk', current: '<i class="blue...

close colorbox on link click within the colorbox

jquery,colorbox
I have a colorbox window which calls a small html page (iframe). The page called contains a link to another page on the main site (i.e. from which the colorbox was triggered.) At the moment, clicking the link loads the new page into the colorbox. I don't want that. How...

Show previous photo on click in the left half of the current photo in Colorbox

jquery,colorbox
In Colorbox 1.6.0, by default, a click on the displayed photo means the next available photo is displayed. Can I customize Colorbox to display the previous photo when the user clicks the left half of the current photo? I know how to determine if mouse click happened in left or...