3 Replies Latest reply on Mar 15, 2011 6:57 PM by Tim Evers

    Open an google inside rich modalPanel

    lucasmonsterrocha Newbie

      Hello people, i want click in an link an open a modal with any url that i want, for example http://www.google.com how i do this, i've tried

      <a href="#" onclick="Richfaces.showModalPanel('googleModal', {top:'100px', left:'100px', height:'400px'})">

      this is the modal

      <rich:modalPanel id="correioModal" > 
                                      <f:facet name="controls">
                                      <a href="javascript:Richfaces.hideModalPanel('correioModal')">X</a>

      but in the place of a href i've put http://www.google.com but open the parent window , is there any attribute of the showModalPanel function that i can say the url that i want to open inside, i've try before top put location.href:http://www.google.com.br but not iven the modalpane appear