Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

issue with <cfform> and <form>

New Here ,
Dec 30, 2009 Dec 30, 2009

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???

379
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 31, 2009 Dec 31, 2009
LATEST

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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources