Firing event on input change?

Topics: Developer Forum, Project Management Forum, User Forum
Feb 23, 2012 at 1:05 PM

I am trying to build preview feature for property content in N2 Management. For example, for image property, when you select image, it would be handy to preview image you selected before you save page. I built everything, except for one last tiny bit - I cannot detect change in content of input field, change that is made after you select image from tree window.

Could you trigger "change" event for input field in N2 after window closes and new value is inserted in input text field? 

Coordinator
Feb 24, 2012 at 6:29 PM

Do you mean on the client? Could you use keydown?

Feb 27, 2012 at 8:26 PM

I can use keydown in a case where editor types in some value. However, what I am trying to do is catching change of input field when popup with tree selector is used. There is no keyboard interaction in that scenario. Throwing simple onchange event in that case enables easy detection of change and implementation of immediate preview.

Coordinator
Feb 27, 2012 at 9:37 PM

I see. Would you care to send a pull request?