1 Reply Latest reply: Feb 28, 2009 9:21 AM by Newsgroup_User RSS

    Spry submit form and reset

    Phil_W Community Member
      Hi,

      I'm builiding a page that uses spry to submit the form.

      The response from the server is fed back ionto a callback function which populates a div for the purpose.

      I'd like the callback function to reset the form on getting a positive response.

      How can I achieve this?

      Page is at http://www.thehmc.co.uk/forum2/ajaxform.asp

      Thanks

      Phil

        • 1. Re: Spry submit form and reset
          Newsgroup_User Community Member
          "Phil_W" <webforumsuser@macromedia.com> wrote in message
          news:gobmts$796$1@forums.macromedia.com...
          > I'm builiding a page that uses spry to submit the form.
          >
          > The response from the server is fed back ionto a callback function which
          > populates a div for the purpose.
          >
          > I'd like the callback function to reset the form on getting a positive
          > response.
          >
          > How can I achieve this?

          This library has a tmt.form.clearForm() and tmt.form.clearFields() methods:
          http://www.massimocorner.com/libraries/form/index.htm

          Hope it could help


          --
          ----------------------------
          Massimo Foti, web-programmer for hire
          Tools for ColdFusion, JavaScript and Dreamweaver:
          http://www.massimocorner.com
          ----------------------------