In the application I'm developing, I need a link to behave as a form
submit. I set up a little test example below and it worked fine:
<table>
<tr>
<form action="action1 .cfm" method="POST" enablecab="No"
name="CareerAct ionPlanLink">
<td align="center">
<input type="Hidden" name="careerAct ionPlanID" value="7">
<a href="javascrip t:document.Care erActionPlanLin k.submit();">Ed it</a>
</td>
</form>
</tr>
</table>
Then I did it for real and it keeps throwing Javascript errors at me.
Can anyone look at the following code and give me a clue where I might
be going wrong. I'm using fusebox 2 with coldfusion which means that
the form will submit to the index.cfm file. The js error states "Object
does not support this method or property" or words to that effect.
Thank you very much.
<cfoutput query="getRecs" >
<tr valign="middle" bgcolor="#IIf(C urrentRow Mod 2, DE('D7F991'),
DE('EDFDCC'))#" >
<td height="28">Act ion Plan: #currentRow#</td>
<td>#CareerDire ctionName#</td>
<td>#CompName #</td>
<td>#DateFormat (LastEdited,"mm/dd/yy")#</td>
<form action="#Reques t.Self#" method="POST" enablecab="No"
name="CareerAct ionPlanLink">
<input type="Hidden" name="careerAct ionPlanID"
value="#careerA ctionPlanID#">
<input type="Hidden" name="fuseactio n" value="editCare erActionPlan">
<td align="center">
<a href="javascrip t:document.Care erActionPlanLin k.submit();">Ed it</a>
</td>
</form>
<td align="center"> <a
href="#Request. Self#?fuseactio n=deleteCareerA ctionPlan&caree rActionPlanID=# careerActionPla nID#">Delete</a></td>
</tr>
submit. I set up a little test example below and it worked fine:
<table>
<tr>
<form action="action1 .cfm" method="POST" enablecab="No"
name="CareerAct ionPlanLink">
<td align="center">
<input type="Hidden" name="careerAct ionPlanID" value="7">
<a href="javascrip t:document.Care erActionPlanLin k.submit();">Ed it</a>
</td>
</form>
</tr>
</table>
Then I did it for real and it keeps throwing Javascript errors at me.
Can anyone look at the following code and give me a clue where I might
be going wrong. I'm using fusebox 2 with coldfusion which means that
the form will submit to the index.cfm file. The js error states "Object
does not support this method or property" or words to that effect.
Thank you very much.
<cfoutput query="getRecs" >
<tr valign="middle" bgcolor="#IIf(C urrentRow Mod 2, DE('D7F991'),
DE('EDFDCC'))#" >
<td height="28">Act ion Plan: #currentRow#</td>
<td>#CareerDire ctionName#</td>
<td>#CompName #</td>
<td>#DateFormat (LastEdited,"mm/dd/yy")#</td>
<form action="#Reques t.Self#" method="POST" enablecab="No"
name="CareerAct ionPlanLink">
<input type="Hidden" name="careerAct ionPlanID"
value="#careerA ctionPlanID#">
<input type="Hidden" name="fuseactio n" value="editCare erActionPlan">
<td align="center">
<a href="javascrip t:document.Care erActionPlanLin k.submit();">Ed it</a>
</td>
</form>
<td align="center"> <a
href="#Request. Self#?fuseactio n=deleteCareerA ctionPlan&caree rActionPlanID=# careerActionPla nID#">Delete</a></td>
</tr>
Comment