0 Replies Latest reply on Oct 23, 2008 11:45 AM by Rabel

    Problem with a Javascript form

    Rabel Level 1
      Hello I am trying to apply a search to my site - using the html form code

      <form style="margin-top: 0px; margin-bottom: 0px; width:300px;" name="SearchBoxForm" action="searchadv.aspx" method="GET" onSubmit="return SearchBoxForm_Validator(this)">
      <span class="style1"><span class="style2">Search:</span>
      <input name="SearchTerm" size="30" />
      </span><img src="images/spacer.gif" width="4" height="4" />
      <input name="submit" type="Image" align="middle" src="skins/Skin_10/images/go.gif" border="0" />
      <input type="hidden" name="IsSubmit" value="true" />
      </form>

      I tried to use a code like this from breaking down the code above

      on(release){
      whattext = _root.searchtext.text
      trace(whattext)
      getURL("javascript:SearchBoxForm_Validator(whattext)","_self","GET")
      }

      But there is the onSubmit and the action in the form so I dont know how to pass it, I also tried this coding and changing the input on the flash file to SearchTerm

      on(release){
      getURL("searchadv.aspx","_self","POST")
      }

      That jumps to the page but does nothing with the search, like you would expect.

      Any help is appreciated.
      Thanks
      Randy