Grid Code:
Employer.cfm
<cfform name="GridEmployerform" action="">
<cfgrid name="GridEmployer" width="400"
selectmode="edit"
query="Data" height="50">
<cfgridcolumn name="DepartmentID"
header="EmployerID" select="false"
headeralign="center"
headerbold="Yes">
<cfgridcolumn name="FirstName"
header="FirstName"
headeralign="center"
headerbold="Yes">
<cfgridcolumn name="LastName"
header="LastName"
headeralign="center"
headerbold="Yes">
</cfgrid>
<cfdiv id="results"
bind="url:Test.cfm?EmployerID={GridEmployerform:GridEmployer.EmployerID}">
</cfdiv>
Test.cfm
<cfquery name="get" datasource="#application.datasource#">
SELECT Salary
FROM Department
WHERE = '#url.EmployerID#'
</cfquery>
<cfgrid name="GridEmployer" width="400"
selectmode="edit"
query="Data" height="50">
<cfgridcolumn name="Salary"
header="Salary"
headeralign="center"
headerbold="Yes">
</cfgrid>
<cfajaximport tags="cfform" />
<cfinput type="text" name="txt_salary" value"#Salary#">
<cfinput type="submit" name="submit_salary" value"Submit Value">
<cfinput type="submit" name="submit_Home" value"Submit Home">
Now.. my concern I have to go back to the page where I should display only the
Employergrid not the other stuff in Test.cfm.
I tried with cflocation
<cflocation Employer.cfm>
but it is not working normally while it is working before. It is not moving
forward to Test.cfm again if I use cflocation.
Can any one help with this?
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:320426
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4