well, that is because, obviuosly, you do not have a form
element named
"CatID".
you need not bind you cfdiv to a form element - just use
#url.catID# in
the bind url:
<cfdiv bind="url:divsource.cfm?catID=#url.catID#"
id="thecategory"
style="background-color:##CCffFF; color:red; height:350"/>
even better: why do you need to use some link to reload your
page to
update the cfdiv when you have ColdFusion.navigate()
function?
try this instead of your code:
<cfoutput query="showcategories">
<tr>
<td>#trim(category)#</td>
<td><a href="##"
onclick="ColdFusion.navigate('divsource.cfm?catID=#catID#',
'thecategory');">Edit</a></td>
</tr>
</cfoutput>
<cfdiv id="thecategory"
style="background-color:##CCffFF; color:red; height:350"/>
if you want to have your cfdiv hidden until an Edit link is
clicked, add
display:none; to its style, and then change its display
style to
'block' in the Edit link's onclick event. you may well write
a little js
function that will display the cfdiv and update its content
and call
that function in the Edit link's onclick event.
Additional Info:
if you have a form in the cfdiv's content (which it looks
like you do),
remember this: if you use CFFORM tag, than the form will
submit into
cfdiv without refreshing the whole page; a simple FORM tag
will submit
to the main page refreshing it.
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/