Please try the following code, you'll see URL.param1 is not available upon 
Button click.  On the other hand, the cfdebug has the following info:
"
info:http: Replacing markup for element: testWin_body from URL 
test.cfm?param1=cat with params _cf_containerId=testWin_body

info:widget: Navigating to test.cfm?param1=cat in the container: testWin
" 
which seems to suggest, param1 and its value may be able to be retrieved, how?
Thanks.

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<cfoutput>
<script language="javascript">
        var doSomething = function() {    
        document.getElementById('populateMe').value = 'You just clicked on 
#URL.param1#'; 
        }
</script>
</cfoutput>
</head>

<body>
Tring to pass a URL param and its value via ColdFusion.navigate function</br>
<cfpod name="testWin" 
                                        title="test window"
                                        width="500"
                                        height="340">
        
<cfajaximport tags="cfform">
<cfform name="auto" id="auto">
<cfINPUT NAME="Cat" TYPE="button" VALUE="Pass a URL param and its value of cat 
via ColdFusion.navigate function" 
            
onclick="javascript:ColdFusion.navigate('test.cfm?param1=cat','testWin', 
doSomething);"/>
<br/>                                           
<cfINPUT NAME="Dog" TYPE="button" VALUE="Pass a URL param and its value of dog 
via ColdFusion.navigate function" 
            
onclick="javascript:ColdFusion.navigate('test.cfm?param1=dog','testWin', 
doSomething);"/>
<br/>                                           
Display: <cfinput name="populateMe">                                            
</cfform>
 
</cfpod>
</body>
</html>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:295378
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to