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>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="InsertBrandData"
returnvariable="InsertedBrand"/>
<cfif form.Image neq ''>
<cffile action="upload" fileField="image"
destination="#application.workingPDFDirectory#" result="fileUpload"
nameconflict="overwrite">
<cffile action="readBinary" file="#image#"
variable="FinalImage">
<cfset session.FinalImage
="#FinalImage#">
<cfinvoke component="#OAFAdmin_Obj#"
method="UpdateLogo" returnvariable="UpdatedLogo"/>
<cfquery name="Query5" datasource="BankInfo"
result="result_1">
select Logo from tblWebSiteBrand where BankNumber='1221'
</cfquery>
<cfimage action="writetobrowser" source="#Query5.Logo#" />
</cfif>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:320499
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4