Ok, so I am taking Ray's advice and changing a hidden form variable and
submitting the form with JS. Thing is when I use the normal submit() in JS it
breaks the page out of the original <cflayout>.
Anyone know how to keep the form in the layout when submitting with JS?
Thanks.
> Ray,
>
> Thanks for the help again.
>
> Yeah it is confusing me. I have tried submitting to the same page and
> to a different page and it always has the same result. The second
> button is ignored.
>
> I don't know what the deal is. At least it is not just me, if it
> surprised you then there must really be something wrong.
>
> Thanks again, you are the man.
>
> > I have this little bit of code that I am testing with inside of a
> > <cflayoutarea>:
> >
> > <cfform name="form1">
> >
> > <cfinput name="sku" type="text">
> > <cfinput type="submit" name="cmd1" value="1">
> > <cfinput type="submit" name="cmd2" value="2">
> >
> > </cfform>
> >
> > <cfif isDefined('cmd1')>
> > <cfoutput>#cmd1#</cfoutput>
> > </cfif>
> >
> > <cfif isDefined('cmd2')>
> > <cfoutput>#cmd2#</cfoutput>
> > </cfif>
> >
> > When inside the <cflayoutarea> and the form is submitted it always
> > returns a value for cmd1 no matter which submit button is clicked to
>
> > submit the form and no value for cmd2. See example: http://demo.
> > thinksys.com/cf8/cflayout/
> >
> > When not in the <cflayoutarea> it functions like I think it should.
>
> > See Example: http://demo.thinksys.com/cf8/cflayout/1.cfm
> >
> > Anyone have any idea why. I am sure I am just confusing something
> > because I am really not sure about a lot of the new CF8 stuff.
> >
> > Thanks in advance for any help.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285450
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4