Thanx for all the feedback. I'm about 95% sure that I've done all this before 
and made it work. And the examples given have been tried too. There must be 
something different in my case. This simple use of 2 buttons on a page worked 
for me. But when I put it back into the live case it fails, so I think I am 
missing something there. 

I have trimmed out irrelevant code in an attempt to get this down to a basic 
test but still it fails showing me a string that has both button names (it 
didn't do this when I started with a single page). My case includes a cfwindow, 
so there are 2 bits of code below ... the page and the window.

The calling page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript">
        function WinGo(WindowName,WindowCode) {
                ColdFusion.Window.show(WindowName);
                ColdFusion.navigate(WindowCode,WindowName);
        }
</script></head>

<body>
<input name="Duration" type="Button" value="Change Duration"   
                    
onclick="WinGo('DurationWindowEdit','UpdateBookingChangeDuration.cfm?Guest=0')"/>
<cfwindow closable="true" draggable="true" modal="true" 
name="DurationWindowEdit" resizable="false" 
        title="Change Duration" width="500" height="200" x="100" y="100"
    headerStyle="font-size:13px; font-weight:bold; font-family:Verdana; 
background-color: ##003399; color: white; text-align:left;" >
    <cfajaximport tags="cfform, cfwindow, cfdiv" scriptsrc="/CFIDE/scripts">
    </cfwindow>

    <!-- InstanceEndEditable -->

</body>
</html>

and the window template:

<cfoutput>

<!--- Postback processing if the form specified a change in partial stay 
duration --->
<cfif IsDefined("FORM.Choose") AND (FORM.Choose NEQ "Full")>
        <cfdump var="#FORM#">
        <cfabort showerror="stop">

<!--- Postback processing if the form specified a change to a full stay --->
<cfelseif IsDefined("FORM.choose") AND (FORM.choose EQ "Full")>
    <cfabort showerror="made it">

<cfelse><!--- Initial call, just show the input form --->

        <cfdump var="#FORM#">
    <cfform>
        <input name="Choose" value="Change" type="submit"  />
        <input name="Choose" value="Full" type="submit"  />
        </cfform>
        </cfif>
     
</cfoutput>

No matter what I do, it keeps setting FORM.Choose to "Change,Full"

Any ideas? 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:333226
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to