Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
sknowles #1
Flash form focus
Is there a way to establish the focus on a specific field (at page load) using the new MX7 Flash forms?
sknowles Guest
-
Setting focus on a form field
When a CFM page loads, how can you set focus on a textbox so the cursor is already in the field? Thanks Steve -
Popup; show, take focus, wait for button action, give focus, hide
Hi. I've got a popup MC for displaying a message or asking a yes/no question that has to do the following on an event: - show and take focus... -
Saving a value if a form is closed while focus is still in the control
Strange. When I first tested it, the value was not saved. Now it seems to save when I close the form. How do you programmatically save the value... -
Continuous Sub form does not release focus with tab key
How can one make a form that is in continuous format release focus with the tab key and move focus to the next control in the tab order? The way it... -
Setting focus after Validating Form Items
I have a form with about 5 or 8 textboxes and all of them have required field validators... When I submit the form, if some of this field are... -
bal_logicmanager #2
Re: Flash form focus
Did you get an answer on this? I need to know how to do this as well.
bal_logicmanager Guest
-
hollyjones #3
Re: Flash form focus
This will set the focus:
<cfsavecontent variable="onLoad">
txtName.setFocus();
</cfsavecontent>
<cfsavecontent variable="binding">
{(trigger.text != '') ? trigger.dispatchEvent({type:'change'}) : 'init'}
</cfsavecontent>
<cfform name="mainform" skin="haloblue" width="400" format="flash"
onchange="#onLoad#" bind="#binding#">
<cfformgroup type="panel" label="Set Focus Example">
<cfinput type="text" name="txtName" message="Name" width="200" label="Name">
<cfinput type="text" name="txtPhone" mask="Phone" width="200" label="Phone">
<cfinput type="text" visible="false" height='0' width="0" name="trigger"
value="init" onchange="#onLoad#" bind="#binding#">
<cfinput type="submit" name="btnUpdate" value="Update">
</cfformgroup>
</cfform>
hollyjones Guest



Reply With Quote

