Copy link to clipboard
Copied
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???
Copy link to clipboard
Copied
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>