[CLOSED] Button CLICK directevent & listener timeout

  1. #1

    [CLOSED] Button CLICK directevent & listener timeout

    Hi,

    i have button with click directevent & listener. the listener implement some logic that requires action from user [which mean varying time: can't be handled by delay=??] but the directevent fire automatically after sometime even the user didn't made action to the listener!!! so how to pause the directevent from fire untill the sweet listener finish his work??

    if this is case not true then give me example.

    thanks,
    Last edited by Daniil; Apr 09, 2011 at 12:56 PM. Reason: Marked as [CLOSED]. No more information was provided.
  2. #2
    Hi,

    I guess that waiting the action from user doesn't stop JavaScript executing and DirectEvent is fired as expected.

    What user's action do you need to wait in listener?

    Maybe the confirmation functionality is appropriate in your case. Try to press the second button here:
    https://examples1.ext.net/#/Events/D...ents/Overview/

    If it's not an option, please use DirectMethod instead of DirectEvent and call or not this method whne a user will do required actions.
  3. #3
    that's not solving my problem! in the listener i show the user small dialog to choose an option from a list then i pass the chosen option to the directevent params! but it fires after sometime maybe 30 seconds i guess even if the user didn't select any option. i know that i can make other hidden button but i am just wondering if i can do that without extra button.

    example of button listener use-case:
    a button called data-sync which can sync from different locations, i want to give the user ability to choose location before firing the direct-event! i hope its clear now!
    and NO, i don't wanna use the button with menu in this one.
  4. #4
    Well, it's pretty hard to piece together your scenario based only upon your description. Why don't you post a simplified code sample demonstrating how you currently have things configured. Please spend a few minutes simplifying the sample by removing any code which is not directly relavant to the problem.

    There is no way to "pause" a DirectEvent. If you want to fire a DirectEvent, and then wait for some user input, you will need rethink how you chain these events together. As Daniil mentioned above, maybe firing a Listener to open the dialog box, then calling a [DirectMethod] after the user has input their value.
    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 5
    Last Post: Mar 19, 2014, 3:35 AM
  2. [CLOSED] ext:Button: Adding listener to a click event
    By supera in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Apr 05, 2012, 12:04 PM
  3. Click Listener to Button from Code-Behind
    By Alexx in forum 1.x Help
    Replies: 7
    Last Post: Jul 26, 2011, 11:26 AM
  4. Replies: 2
    Last Post: Oct 22, 2010, 11:04 AM
  5. [CLOSED] Button Click Listener bug
    By methode in forum 1.x Legacy Premium Help
    Replies: 0
    Last Post: Apr 26, 2010, 11:40 AM

Tags for this Thread

Posting Permissions