2 Replies Latest reply on Feb 17, 2010 11:53 AM by Rama Nallamilli

    <rich:effect> not working properly in Opera

    Zlatko Suslevski Newbie

      Hi all,

      I headed first to JIRA in order to report a bug, but I thought I would take the chance in this forum first.

      The problem is the following code:

      <div id="contentDiv" style="width:100px; height:100px; background-color: yellow">
       Sample text
      </div>
      
      <a onclick="hideDiv();" href="#">Hide</a>
      
      <rich:effect name="hideDiv" for="contentDiv" type="BlindUp" params="duration:0.8" />
      


      Obviously, there is a DIV element that should be "closed" when the link is clicked. However, this executes correctly in Firefox 3 and IE 8, but not in Opera 10. The RichFaces version is 3.3.2.SR1.

      When used the developer tools embedded in Opera, I got the following script error messages:
      - on page load, the console said: Undefined variable: params
      - on link click, the console said: Undefined variable: hideDiv

      I tried many combinations and things I thought would be relevant, but to no avail. What is wrong in this code, and how to make it work in Opera, too?

      Thank you. Any direction is appreciated.
      Zlatko