Sorry by mistake post got submitted.... Check here for full details..
Hii All,
I really dont know how to post for the technical issues and I will try
my best to explain in details.
I have a parent Page with the below form fields and using cfdiv to
submit the form asynchronously.
<cfform name ="DetailsForm">
<table>
<tr>
<td>EmployerID</td>
<td><cfinput type="text" name="txt_EmployerID" id="id_EmployerID"
value=""></td>
</tr>
<tr>
<td>FirstName</td>
<td><cfinput type="text" name="txt_FirstName" id="id_FirstName"
value=""></td>
</tr>
<tr>
<td>LastName</td>
<td><cfinput type="text" name="txt_LastName" id="id_LastName"
value=""></td>
</tr>
<tr>
<td>Photograph</td>
<td><cfinput type="file" name="Image" id="id_file" value=""></td>
</tr>
<tr>
<td><cfinput type="submit" name="submit_Details" value="Submit"></td>
</tr>
</table>
</cfform>
<cfdiv id="id_details" bind="url:New1.cfm?FirstName={DetailsForm.
FirstName}"> </cfdiv>
New1.cfm
<cfobject component="Project_Sample" name="Project_Sample_Obj">
<cfinvoke component="#Project_Sample_Obj#" method="InsertInfoData"
returnvariable="InsertedInfo"/>
<cfif form.Image neq ''>
<cffile action="upload" fileField="image"
destination="#application.workingPersonnelDirectory#"
result="fileUpload"
nameconflict="overwrite">
<cffile action="readBinary" file="#image#" variable="FinalImage">
<cfset session.FinalImage ="#FinalImage#">
<cfinvoke component="#Project_Sample_Obj#" method="UpdatePhoto"
returnvariable="UpdatedPhoto"/>
<cfquery name="Query5" datasource="Information" result="result_1">
select Photo from tblEmployer where EmployerID ="#form.EmployerID#"
</cfquery>
<cfimage action="writetobrowser" source="#Query5.Photo#" />
</cfif>
<cfform name ="WorkingDetailsForm">
<table>
<tr>
<td>EmployerID</td>
<td><cfinput type="text" name="txt_EmployerID" id="id_EmployerID"
value=""></td>
</tr>
<tr>
<td>Salary</td>
<td><cfinput type="text" name="txt_Salary" id="id_Salary"
value=""></td>
</tr>
<tr>
<td>WorkingHours</td>
<td><cfinput type="text" name="txt_WorkingHours" id="id_WorkingHours"
value=""></td>
</tr>
</table>
</cfform>
<cfdiv id="id_Salary" bind="url:New2.cfm?Salary={WorkingDetailsForm.
Salary}"> </cfdiv>
.
.
.
.
My concern is ... once I enter the details and submit it .. I am unable to
acess the form fields in new1.cfm.
Error: Element form.txt_FirstName is undefined in form.
I am asuming I have the problem in submitting the form fields. Is not the right
way to submit the forms ????
Thanks,
Pranathi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320500
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4