Skip navigation
Currently Being Moderated

Effects not working with spry:region observer

Apr 26, 2009 5:11 PM

I can't get the spry:setrow function to work properly with Fade effect (works fine w/o it).

Example: http://a44.awardspace.com/testing/index-4.html.

 
Replies
  • Currently Being Moderated
    Apr 26, 2009 5:13 PM   in reply to kf420

    what are you trying to do? I see the page, but all i see is blocks and some numbers.

     
    |
    Mark as:
  • Currently Being Moderated
    May 7, 2009 8:25 PM   in reply to kf420

    Sorry-Im not sure what the problem is.

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2009 6:06 PM   in reply to kf420

    Hi A44,

     

    You are setting your onPostUpdate observer on a non-existent region:

     

        Spry.Data.Region.addObserver('sp1', fadeInContent);

     

    There is no region element on your page with an id of 'sp1'. If you change it to:

     

        Spry.Data.Region.addObserver('example2Region', fadeInContent);

     

    Things work properly.

     

    --== Kin ==--

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2009 11:12 PM   in reply to kf420

    You can get rid of the flicker by setting the initial state of sp1 to zero opacity. Add this CSS rule to your <style> tag:

     

    #sp1 {
        opacity: 0;
        filter: alpha(opacity=0);
    }

     

    I'm not sure what your IE8 problem is ... I don't have IE8 on the machine I'm using right now.

     

    --== Kin ==--

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2009 11:32 PM   in reply to kinblas

    Regarding your IE8 error ... it might be complaining about the fact that you didn't forward declare sp1. Try changing this:

     

        var observer = { onPostUpdate: function(notifier, data) { sp1 = new Spry.Widget.SlidingPanels("sp1"); } };

     

    to:

     

        var sp1;

        var observer = { onPostUpdate: function(notifier, data) { sp1 = new Spry.Widget.SlidingPanels("sp1"); } };

     

    and see if that gets rid of your problem.

     

    --== Kin ==--

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 10, 2009 3:17 AM   in reply to kf420

    Hi

     

    I have been having major problems with Spry code and IE8. From reading around it's not just spry, prototype is also broken.

     

    Even if I add <meta http-equiv="X-UA-Compatible" content="IE=7" /> to the header of the page to tell IE8 to render it as IE7 things still don't work!

     

    Good old microsoft, breaking everything all over again!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 10, 2009 3:19 AM   in reply to MattyC

    Um... even if you try adobes sample site none of it works in IE8!

     

    http://labs.adobe.com/technologies/spry/samples/slidingpanels/SlidingP anelsSample.html

     

    Great!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 11, 2009 1:04 AM   in reply to MattyC

    It works just fine here with IE 8.0.6001

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points