PDA

View Full Version : How to fire mousedown event programatically?



url
25 Apr 2013, 5:23 AM
Hi All,

I have a formpanel and some fields inside it.

I'm registering a mousedown event for form which shows a border to the field. When a mousedown is happening for the otherfield then i'm removing the existing field border and applying it to the current field for which mousedown occured.

For this form I'm adding the fields dynamically.
Now for the newly added field i want to show the border i.e., i want to fire the mousedown event programatically.

Can you please suggest how can i achieve?


Regards
URL

Arg0n
25 Apr 2013, 6:22 AM
Why you dont call the function, which adds the border after you added a new field?

url
25 Apr 2013, 8:58 PM
I'm using a userdefined plugin which shows the div element around the field when a mousedown fires on form.body

Arg0n
25 Apr 2013, 11:43 PM
You can get plugins with form.getPlugin('id');
Then you could call the function, which fires the event. But why? xD
This function would also call the function which adds a border to your field... so why not directly call the function? o.O

Or am I misunderstanding something? :x