0 Replies Latest reply on Oct 2, 2007 8:33 AM by cfcolorado

    CF AJAX tags to display an include

    cfcolorado
      I'm brand new to ajax in general as well as coldfusion ajax tags and have a question that is simple to most.

      There is a CF tag that does something similar to what I want to do except I don't want to use a form but rather a simple hyperlink. Basically in the sample below the form wehn submitted opens up the action page in the same window as the form. I'd just like to replace the form with a hyperlink that then displays an include file.

      Thanks for any suggestions!


      <html xmlns=" http://www.w3.org/1999/xhtml">
      <head>
      </head>
      <body>
      <cflayout type="vbox" name="layout1">
      <cflayoutarea>
      <h3>This area is not refreshed when the form is submitted.</h3>
      <br />
      </cflayoutarea>

      <cflayoutarea>
      <h3>This form is replaced by the action page</h3>
      <cfform name="myform" format="html" action="showName.cfm">
      <cfinput type = "Text" name = "name">
      <cfinput type = "submit" name = "submit" value = "Enter name">
      </cfform>
      </cflayoutarea>
      </cflayout>

      </body>
      </html>