Not to worry, I've got this working now.
Now I'd like to preserve the selections made by a user in the form, after
it's submitted.
The idea here is that a user can refine their search easily if they get too
many/not enough results.
All the form fields are selects, apart from two checkboxes.
I thought the callback function might be the place to set form field values
when the form is submitted, but I can't seem to get this working:
<script language="javascript">
var mycallBack = function(){
searchForm.genreFilter.value =
<cfoutput>#Form.genreFilter#</cfoutput>
}
<!--- The error handler pops an alert with the error code and message. --->
var myerrorhandler = function(errorCode,errorMessage){
alert("[In Error Handler]" + "\n\n" + "Error Code: " + errorCode +
"\n\n" + "Error Message: " + errorMessage);
}
</script>
(this is a cut down version of the script)
Am I missing something here? I suspect I am.
Will
-----Original Message-----
From: Will Swain [mailto:[EMAIL PROTECTED]
Sent: 19 December 2007 00:00
To: CF-Talk
Subject: submitting a cfform to a cfpod
Hello,
I have a page with a cfform, and I want to submit the form to a cfpod that
is also on that page. I want to pod to refresh on form submit, and display
results. I know this can be done with a grid, so I assume it can be done
with a pod too, but I'm having some difficulties figuring out how.
Any ideas?
Thanks
Will
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295156
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4