I wrote an article for Macromedia’s Edge newsletter on Flash Forms and Flex, explaining the similarities and differences, and clarifying when to use each. The article entitled ColdFusion MX 7: Creating Flash Forms with Ease and Flex-ability is now online (see section 2).
Hi Ben,
Good overview. One problem I’ve been trying to solve with tabbed Flash forms: Is it possible to programatically change the focus from one tab to another? I’ve tried creating a button with an onclick event (onclick="formname.tabname.focus()") but can’t seem to get it to work. Even tried putting some Actionscipt in the onclick statement but no luck. Is this even possible with CF Flash forms?
Thanks,
Oliver
This should work: Replace your button with the following:
<cfinput type = "button" name="cont_submit" width="100" value = "Next Tab" onclick="_root.cont_submit._parent._parent._parent.selectedIndex=1">
This was from Tim Buntel’s blog on flash forms.
HTH.
Dave
Thanks Dave!
I finally got it to work by using *four* ._parent tokens.
Cheers,
Oliver