Skip to main content
Participant
December 30, 2009
Question

issue with <cfform> and <form>

  • December 30, 2009
  • 1 reply
  • 396 views

Hi everybody I'm having an issue with <cfform>, <form> on Firefox, I have a .cfm page where I´m using AJAX to show another .cfm into a <div> tag when the user click a button, my issue is firefox doesn´t show the Mynewpage's <cfform> or <form> but Internet Explorer does

on IE show the cfform without issues, but FF shows just the things before <cfform>

my first page code:

<table>

     <tr>

          <td>

               <input type="button" name="button1" onclick="javascript: ajax = new Ajax.Updater('MyDiv','Mynewpage.cfm?a=b', {method:'get'});">

          </td>

     </tr>

</table>

<div id="MyDiv"></div>

Mynewpage code:

<cfoutput>Hi type your name<cfoutput>

<cfform>

<table>

     <tr>

          <td>

               Name:

          </td>

          <td>

               <cfinput name="name1">

          </td>

     </tr>

</table>

</cfform>

somebody knows how can I resolve it???

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    December 31, 2009

    Use cfform and cfinput throughout. Whether the AJAX call is correct is another matter.

    <cfform>   
    <table>
         <tr>
              <td>
                   <cfinput type="button" name="button1" value="my button" onclick="javascript: ajax = new Ajax.Updater('MyDiv','Mynewpage.cfm?a=b', {method:'get'});">
              </td>
         </tr>
    </table>
    </cfform>

    <div id="MyDiv"></div>

    Hi type your name

    <cfform>
    <table>
         <tr>
              <td>
                   Name:
              </td>
              <td>
                   <cfinput name="name1" type="text">
              </td>
         </tr>
    </table>
    </cfform>