Terry,

I did this exact same scenario. Here are my basic steps:

1.) Create a <cfajaxproxy> bind event like

<cfajaxproxy bind="javascript:getDetails({m...@change})">

2.) Then create a JavaScript function called getDetails and inside include
the following:

var menuIndex = document.forms['theForm'].menu.selectedIndex;
var menu_id = document.forms['theForm'].menu[menuIndex].value;
ColdFusion.navigate('prod2.cfm?id=' + menu_id),'product_display');

Obviously, change the 'theForm' to an appropriate number of name. That's how
I handle on a few forms for our site,

Phil



On Wed, Nov 25, 2009 at 10:25 AM, Terry Troxel <te...@it-werks.com> wrote:

>
> I have a page (prod1.cfm) with a two column table.
> The left column contains a javascript menu.
> The right table contains: <cfdiv id="product_display"
> bind="url:prod2.cfm?ID={ID}">
>
> How can I use the  javascript menu to pass the ID key to the cfdiv in order
> to have prod2.cfm display the data related to the ID when a menu item is
> clicked?
>
> Terry
>
> If there is an example file somewhere I'd love to see it as I have only
> been
> able to see examples using cfform.
>
> Even an <a href= example would make my day.
>
> Thanks, Terry
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328669
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to