Remember that CF only runs once to produce this page's content. the
AJAX stuff runs as a separate page and returns info to the JavaScript
runnning in your generated page. So only once will #FORM.Tier7# be
written out into the page as far as CF is concerned - the rest needs
to be done with JS.
Firstly, I'd add IDs to the selects (match them to the names).
Then, what you need is to do this:
function init() {
var evalsel = document.getElementById("eval").value;
var t7sel = document.getElementById("Tier7").value;
var t6sel = document.getElementById("Tier6").value;
var t5sel = document.getElementById("Tier5").value;
new mxAjax.Data({
executeOnLoad:true,
paramArgs: new mxAjax.Param(url,{param:"eval=" + evalsel + ",T7=" +
t7sel + "T6=" + t6sel,cffunction:"getCourses"}),
postFunction: handleData
});
There's a few other things I'd change too, but try that to get you started.
On 6/13/07, Will Tomlinson <[EMAIL PROTECTED]> wrote:
> > I just checked and it's doing exactly what you're asking it to: It's
> > returning getCourses for eval=22,T7=All,T6=All each time the teir 7
> > select is chosen. Now you just have to pass in the values from the
> > selects instead of the hard wired values and you're set.
>
>
> Ok, here's where I'm lost. lol!
>
> I set those variables to #FORM.Tier7#,#FORM.Tier6# etc.. etc.. Thinking the
> form was posting and it'd pickup on my cf variables. I guess it doesn't work
> like that? It's picking up my <cfparams> for the form items.
>
> How do I get those selections into those mxAjax params?
>
> Thanks james!
>
> Will
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280921
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4