8 Replies Latest reply on May 8, 2007 3:33 PM by jclegs

    Passing text from browser

    jclegs
      Hi
      I'm trying to pass text from browser using javascript but it keeps bringing up the same error. I have the following javascript in the browser (ie7):

      <script language="Javascript">
      function setPlayer(){
      shockMovie=param1;
      shockMovie.EvalScript(inputForm.playerName.value);
      return 0;
      }

      </script>

      <form name="inputForm" method=POST>
      <input type="text" id="playerName" value="Player name">
      <input type="button" value="Submit" onClick="setPlayer()">

      and the following code in the director file (mx 2004):

      on EvalScript text


      put text into gvText
      put gvText into field "Display"

      end

      Does anyone know what i'm doing wrong?

      Thanks