Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6605511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:17:33+00:00 2026-05-25T19:17:33+00:00

I’m have a Ruby on Rails project which displays illustrations. There are category links

  • 0

I’m have a Ruby on Rails project which displays illustrations. There are category links at the top which fade out the illustrations, replaces it with new content and then fades back in.

I am using jQuery 1.6.2.

It works as expected in Safari 5, Firefox 6, Chrome 14 and IE9. In IE7+8 the html is replaced with the new content but no fade occurs.

To begin with I was using html5 elements so thought it could be that, but I’ve since replaced them all with divs and the problem still shows. I’ve tried adding/removing Modernizr and Selectivizr libraries to no effect. Any help is appreciated, code is as follows:

app/views/illustrations/index.html.erb

<div id="illustrations" class="illustration-list">
  <%= render @illustrations %>
</div>

app/views/illustrations/_illustration.html.erb

<div class="illustration">
  <div class="figure">
    <%= link_to image_tag(illustration.image.url(:thumb), alt: illustration.title), illustration %>
    <div class="figcaption">
      <%= link_to illustration.title, illustration %>
    </div>
  </div>
</div>

app/views/shared/_category_links.html.erb – Which triggers the ajax

<ul>
  <% category_links.each do |category| -%>
    <li class="<%= category.name.downcase %>">
      <%= link_to category.name, category, remote: true %>
    </li>
  <% end -%>
</ul>

and lastly /app/views/categories/show.js.erb

var data = "<%= escape_javascript(render(@illustrations)) %>";
var div = $('#illustrations');
div.fadeOut("slow", function() {
  div.html(data);
  div.fadeIn('slow');
});

EDIT Here is an example without the images, but you should be able to get the idea, http://jsbin.com/ifisuh/4/edit#preview.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:17:33+00:00Added an answer on May 25, 2026 at 7:17 pm

    IE7/8’s opacity support is very flaky. As mentioned in the first comment, it requires ActiveX, so the first port of call is to ensure that:

    • your Windows machine supports it (it doesn’t like VMs or low-color desktops).
    • you have the appropriate DLLs installed.
    • your copy of IE has is configured to allow ActiveX in the appropriate zone.

    Obviously this would need to be set up correctly for any IE7/8 client. On an intranet, this may mean you have to manually check each user’s machine. On the other hand, if your site is going to be used on the internet at large, then you will never have any guarantee that any given IE user will be able to see your opacity effects. (although to be fair, most IE users should be okay)

    But even if you can get it to work, IE’s opacity has a number of known bugs, especially when working with images. Some of those bugs can be worked around by tweaking the graphic — using a different image format; avoiding having any pure black or white in the image; don’t try to fade images with alpha transparency; etc — but some bugs simply can’t be avoid. You should also avoid trying to fade grpahic and text elements at the same time, as this can make the bugs more noticable (as the text fades more smoothly than the graphic). [I can’t find the site I want to reference at the moment which explains some of this in more detail; will edit this answer when (if) I find it]

    The bottom line is that fading in IE7/8 is very hit-and-miss. If it goes right for you, great; but very often it simply can’t be done in the way you’d want to. For some sites this means that the best solution is simply not to even try fading with IE7/8.

    I’m sorry I’m not giving you very good news here. I hope some of the tips I’ve given will help, but please be prepared in case they don’t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.