0 Replies Latest reply on Jan 27, 2010 10:12 AM by Gerardo Arroyo

    Problem with Effect

    Gerardo Arroyo Newbie

      Hi,

       

      I am trying to use the effect component with no luck, even a simple example like this one gave me the javascript error:

      Error: Effect[params.type] is not a constructor
      Source file: http://localhost:8080/testApp/a4j/g/3_3_2.SR1org/richfaces/renderkit/html/script/processEffect.js.jsf
      Line: 3

       

      Any suggestions?

      Thanks

      Gerardo

       

      <div id="contentDiv">
      Test
      </div>
      <input type="button" onclick="hideDiv({duration:0.7})" value="Hide" />
      <input type="button" onclick="showDiv()" value="Show" />

       

      <rich:effect  name="hideDiv"  for="contentDiv" type="Fade" />
      <rich:effect  name="showDiv"  for="contentDiv" type="Appear" />