I''m new to Redbox but have it working in my application. However, on
pages that have less than a full page length of content the overlay
only goes down as far as the content. I''ve used other lightboxes
before outside of Rails and have never had this problem. Has anyone
else experienced this? ...overcome this?
On Jul 8, 10:38 pm, Jacob Nelson
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Step 1:
> 1.1: download all the files from the link
> "http://www.craigambrose.com/projects/redbox" and save it in the
folder
> "redbox"
>
> 1.2: create a folder named "redbox" in
"vendor/plugins" and save
> the file "init.rb" in "vendor/plugins/redbox"
> 1.3: save the "redbox.js" file inside the folder
> "public/javascripts"
> 1.4: save the "redbox.css" file inside the folder
> "public/stylesheets"
> 1.5: save the "redbox_spinner.gif" file inside the folder
> "public/images"
>
> Step 2:
> 2.1: include the javscript file in your rhtml using the command
> <%= javascript_include_tag :defaults %>
> <%= javascript_include_tag ''redbox'' %>
> 2.2: include the stylesheet using the command
> <%= stylesheet_link_tag ''redbox'' %>
>
> Now you are ready to use theRedBoxin your application.
>
> You can include aRedboxusing three ways
>
> 1. InlineRedbox:- This box is already somewhere in this page, but is
> hidden, and is specified using it''s id attribute.
>
> <%=link_to_redbox(''Inline Red Box'',
''inline_box'', {:complete =>
> ''inline_box'', :loading => visual_effect(:highlight,
''inline_box'')}) %>
>
> <div id="inline_box" style="display:
none"><p>This is an InlineRedbox.</p></div>
>
> 2. Inlineredboxgenerated by a component :- This box is generated by
> another action, just like a remoteredbox, however it is rendered into
> this page so that it behaves like an inlineredbox. This removes the
> load time when the box is opened, however it slows down the initial page
> load.
>
> <%= link_to_component_redbox("Red Box Component Contact Page",
:action
> => "contact") %>
>
> 3. AJAXredbox
>
> <%= link_to_remote_redbox("Red Box Ajax Contact Page", :url
=> {:action
> => "contact"}) %>
>
> Command to close theRedbox
> ---------------------------
>
> <%= link_to_close_redbox(''Close'')%>
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---