Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Implementing callbacks

    Hi,

    If I create a new visual component that needs to provide a result to its caller, then I need to call back into the caller's code (exactly like isc.say() does, to give a simple example). I can do this quite easily by asking the caller to provide a string containing the callback function name; I then append brackets and variable values to this string, and use it as the target of, eg, a Button click atrribute.

    This works fine, but is too limited - for example, it has no idea how to callback into a class's encapsulated method.

    What is the proper way to go about this?

    Thanks,

    Wayne

    #2
    Use fireCallback, which allows a number of Callback formats useful in different circumstances.

    Comment

    Working...
    X