0 Replies Latest reply on Jun 2, 2011 11:23 AM by richfaceman

    Can NOT show Modelpanel with jQuery

    richfaceman

      Hi all

       

      Can someone please point to me why this jQuery doesn't work. I'm trying to show Modelpanel onload but it's not working. I've tried an alert in it that's working fine so I presume it's this line  Richfaces.showModalPanel('location'); that causing the problem. Anyone with an idea ?????

       

       

      <head>

      <script type="text/javascript">

       

      $(document).ready(function(){

                          Richfaces.showModalPanel('location');

                });

       

      </script>

      </head>

      <body>

      <rich:modalPanel id="location" width="300" height="180">

      .......

      .....

      </rich:modalPanel>

      </body>

       

      Many thanks

      Zed