GithubHelp home page GithubHelp logo

colorbox-rails's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

colorbox-rails's Issues

colorbox-links.js requires jQuery

If there's already jQuery on the page, it'll be included another time.
I think it shouldn't include jquery but rely on the developer to include it in application.js.

Examples

It seems reasonable to guess that using this gem is better than just loading colorbox.js and using through javascript . . . but after a bunch of searching, I have not found any good examples of how one would use it in a Rails way especially usual things like having a partial rendered inside or a hidden div.

It took me a while, two new routes and a partial but I got it working. Still, I cannot believe that this is the way that you intended.

I am happy to build a nice example wiki page for this project and create a pull request. If needed, I will create a small example app. Please post examples here or email them to me and I will get it built.

  • This is the one I got working but needed an additional route:
    <%= link_to "Add something", new_something_path, data: { colorbox: true, inline: true } %>
  • If someone could example how to make this work, I would be most appreciative:
    <%= link_to "link name", '#', data: { colorbox: true, href: 'id-of-some-div', inline: true } %>
  • Examples of Photo and iFrame would be great as well.

Thank you!

ArgumentError: invalid byte sequence in US-ASCII

Using colorbox-rails (0.0.9) from git://github.com/stevo/colorbox-rails.git (at master) 
ArgumentError: invalid byte sequence in US-ASCII
An error occurred while installing colorbox-rails (0.0.9), and Bundler cannot continue.
Make sure that `gem install colorbox-rails -v '0.0.9'` succeeds before bundling.

installing using ruby 1.9.3 on macosx

popup window doesnt close properly

When I click on a button for a picture, the window with a picture pops up BUT I cannot close it, the close button doesnt work.
When the window pops up, the background of the website turns dark grey and in order to close the window, I have to click on the background, it turns light grey and only then I can close the popup window by clicking on the close button.

What can be the problem? Thanks in advance

'on' instead of 'live'

jQuery team will drop live event soon.

$(document).ready(function() 
{
    $(document).on('click', 'a[data-colorbox="true"]', function(e) {
       ...
    });
});

image groups

Hi, are image groups supported? I can't manage to get them working..

thanks

Youtube videos

Playing around with youtube vids and haven't been able to get one to work. Is it possible to with this gem?

Loading animation

The colorbox opens up empty until the content loads, with no loading animation.

Images not loading - rails 3.1.3, colorbox-rails 0.0.8

hi there,

i installed colorbox-rails via 'gem install colorbox-rails' and added the lines to the application.js and application.css. The colorbox window works, but there are no pictures. The colorbox is just a ugly white spot. Rails gives me a 404 error for the images. What am i doing wrong?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.