[CLOSED] Listeners; Fn / Handler - whats the difference?

  1. #1

    [CLOSED] Listeners; Fn / Handler - whats the difference?

    Hey,
    questions to orient myself =)


    What is the difference between calling a javascript function using "Fn":
    <Focus Fn="searching" />
    and calling it using "Handler":
    <Focus Handler="searching" />
    Last edited by Daniil; Apr 09, 2011 at 12:51 PM. Reason: [CLOSED]
  2. #2
    Hi,

    A value of .Fn must be function name to call of a function. In your example it's "searching".

    A value of .Handler must be any JavaScript code to execute. So, Handler="searching" doesn't make sense it does nothing. Must be: Handler="searching()".

    As well, if you need to pass any additional arguments to a listener, you should use .Handler. If you don't need to pass any additional arguments, you can use .Fn.

    Also you could see in page sources how .Fn and .Handler are rendered to understand it better.
    Last edited by Daniil; Nov 03, 2011 at 6:47 AM.

Similar Threads

  1. Replies: 9
    Last Post: Jun 27, 2012, 2:17 PM
  2. Replies: 2
    Last Post: Mar 15, 2012, 12:57 AM
  3. Whats new in V2?
    By mattwoberts in forum Open Discussions
    Replies: 2
    Last Post: Jan 16, 2012, 9:51 AM
  4. If else condition handler in Listeners
    By NishaLijo in forum 1.x Help
    Replies: 2
    Last Post: Jul 29, 2010, 6:20 AM
  5. Replies: 0
    Last Post: Apr 14, 2009, 6:10 PM

Tags for this Thread

Posting Permissions