try using ColdFusion.navigate() function - you will have to submit your
form via javascript instead of a regular submit button:
<input type="button" name="submit" value="Submit"
onclick="ColdFusion.navigate('[url_to_submit_to.cfm]', '[cfdiv_id]',
null, null, 'post', '[cfform_id_or_name]');">
replace the bits in [ ] with actual values.
mind you, though: if you are using any built-in validation, this will
by-pass it. to preserve the validation you have to have to call a
different function:
onclick="return
ColdFusion.Ajax.checkForm(this.form,_CF_check[name_of_cffrom],'[cfdiv_id]');"
again, replace the bits in [] with actual values.
example:
if your cfform's NAME attribute is "myform", and your cfdiv's id is
"mydiv", the function will look like:
onclick="return
ColdFusion.Ajax.checkForm(this.form,_CF_checkmyform,'mydiv');"
note: i have not tested the second approach with a cfform inside a
cflayout inside a cfdiv, but it does work with a cfform just inside a cfdiv.
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Miles Jordan wrote:
> Hi all,
>
> I have a 'search' cfform inside a cflayoutarea tab, and an 'advanced search'
> cfform inside an adjacant cflayoutarea tab.
>
> The cflayout that these tabs belong to sits inside a cfdiv.
>
> I'd like to be able to submit a cfform from either of the tabs, to the cfdiv
> (replacing the whole cflayout area with the search results), but it seems I
> can only submit to the cfform's parent container (the tab). I've tried using
> <cfform target="theDiv"... but it doesn't work.
>
> Does anyone know how I could achieve the desired result?
>
> Regards,
>
> Miles Jordan
> Applications Developer
> Australian Antarctic Division
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:316595
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4