facebook

v1.5 issue – double callbacks

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #324641 Reply

    SonamGyato
    Member

    Have a panel with 5 images on it (toolbar).

    each has a javascript function attached to it.

    these functions are being called twice in mobi v1.5.

    #324649

    SonamGyato
    Member

    I’ve tracked the problem down.

    My app has a dynamic panel where i create the
    listitems dynamically.

    In the post-transition event, i call.

    $( “#m1-app-panel1-scroller” ).height(listHt);
    $( “#m1-app-panel1-scroller” )[0].myScroll.refresh();

    phoneui.preprocessDOM( “#m1-app” ); //rebind all list-items to be selectable

    to resize the panel.

    if i comment out the preprocessDOM line – i don’t get the double callbacks.

    #324650

    SonamGyato
    Member

    I’ve emailed you a test project.

    #324745

    SonamGyato
    Member

    It happens always.

    The test project displays the same alert message for both.

    are you sure you’re not hitting clicking OK 2 times.

    I’m running the same app i emailed you v1.5 – i have to click
    OK 2 times.

    Just emailed you the same project with a click counter to you.

    Also can you test with v1.5 production release – you might have
    a newer one installed.

    #324758

    SonamGyato
    Member

    I’ve tested to with the iphone emulator that ships with Mobi.

    That’s my test environment.

    And yes – get double clicks there.

    my TC is v1.5 – build 20120320

    #324759

    SonamGyato
    Member

    The cause is the

    phoneui.preprocessDOM( “#m1-app” );

    call.

    If you comment that line out – you won’t get double clicks.

    I’m curious as to why it’s not behaving the same way for you.

    The app i sent to you is super simple.

    My guess is the processDOM function is registering click event
    – w/o unregistering the previous event.

    #324804

    SonamGyato
    Member

    I’ve found a workaround.

    if instead of

    phoneui.preprocessDOM( “#m1-app” )

    i do

    phoneui.preprocessDOM( “#m1-app-panel1” )

    it works fine.

    but i can see this being a problem for some other apps.

    #330285

    SonamGyato
    Member

    Has a solution to this double-click ever been found.

    If you review my previous messages on this thread…

    I’m creating a list dynamically (w/ an image button in the
    list item).

    i call phoneui.preprocessDOM(() as required by the dynamic
    list creation and now am getting double clicks when
    the image button is pressed.

    #330316

    support-michael
    Keymaster

    @everest

    Are you using the latest MobiOne version (2.1.2)?
    (There have been MobiOne code generation updates since your 1.5 posts)

    If yes, can you provide simple example project that demonstrates this problem for us to investigate further?

    #337770

    renato.guiglia
    Participant

    @everest wrote:

    Has a solution to this double-click ever been found.

    If you review my previous messages on this thread…

    I’m creating a list dynamically (w/ an image button in the
    list item).

    i call phoneui.preprocessDOM(() as required by the dynamic
    list creation and now am getting double clicks when
    the image button is pressed.

    Hi, i did the same thing and now i’m in trouble!
    There is some workaround about this problem?
    Thanks

    #337859

    Hi renato,

    The issue is being worked on now. Please see Wayne’s responses about same error reports here:
    http://www.genuitec.com/support-genuitec/viewtopic.php?p=16749#p16749
    http://www.genuitec.com/support-genuitec/viewtopic.php?p=15168#p15168

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: v1.5 issue – double callbacks

You must be logged in to post in the forum log in