1 Reply Latest reply on Jul 19, 2006 1:55 PM by Gavin King

    SEAM and JavaScript

    Hanna Blåfield Newbie

      Hi everyone!

      I'm having a problem with JavaScript generated popup window. I wonder if anyone here could help me...

      With the code like this I can send the parameters to the same window:

      <s:link view="/picture_show.xhtml" action="#{pictureSelect.oldPicture}">
      <f:param name="id" value="#{picture.id}"/>

      </s:link>

      But when I'm trying to do the same to the popup window it doesn't send anything:

      <s:link action="#{pictureSelect.oldPicture}">
      <f:param name="id" value="#{picture.id}"/>
      <img src="/kuvapankki/data/#{picture.cameraman}/#{picture.name}" height="150" onclick="window.open('picture_show.seam','exp','width=677,height=500,scrollbars=yes');"/>
      </s:link>

      Where I'm going wrong here? I really appreciate if someone has time to watch my code!

      Thanks in advance!
      -Hanna Blåfield-

        • 1. Re: SEAM and JavaScript
          Gavin King Master

           

          <s:link action="#{pictureSelect.oldPicture}">
          <img src="/kuvapankki/data/#{picture.cameraman}/#{picture.name}" height="150" onclick="window.open('picture_show.seam?id=#{picture.id}','exp','width=677,height=500,scrollbars=yes');"/>
          </s:link>


          Though I don't see how your action will be called if you do this. Better to make it a page action.