/t5/coldfusion-discussions/setfocus-on-flash-form/td-p/143113Jan 14, 2009
Jan 14, 2009
Copy link to clipboard
Copied
I have an app developed in flash forms, I am trying to make
changes and add validations.
on one of the input forms I am trying to pass focus back to
the input form when validation fails. This is not working see
below. I have used the setfocus() and focus() for the Action script
and nothing seems to be working.
/t5/coldfusion-discussions/setfocus-on-flash-form/m-p/143116#M13151Jan 14, 2009
Jan 14, 2009
Copy link to clipboard
Copied
> desc.setFocus();
It works fine for me in a simple button onClick test. Maybe
the field is not in scope? Shot in the dark here, but any change if
you:
1. Try calling desc.setFocus(); outside your anonymous
function.
2. Try using _root.desc.setFocus()
It is still hanging the browser. The prompt for the error is
working only you can not click the OK button to close it, like it
is opening lots of Ok buttons in an infinit loop. Below is the
entire Action script. I am validating the strings entered. Its
called from the onblur event of the form