Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2013

    Mixed events bug

    Hi, I have read documentation regarding mixed events and mwl.loadURL

    Based on that I have created code and tested on Asha 501 device.

    <div id="changeColor" onclick="mwl.toggleClass('#controlBox', 'red'); checkControlBox();" style="height: 50px;">VideoLink5</div>
    <div id="videoLink" onclick="mwl.loadURL('http://www.google.com'); checkControlBox();" style="height: 50px;">VideoLink</div>
    In those two similar cases, I can see different behavior.
    In first case, where id is "changeColor", on click both functions trigger.
    In second case, where id is "videoLink", on click only checkControlBox is executed. mwl.loadURL doesn't trigger.

    My question is: "Is there a way how to trigger mwl.loadURL and a javascript function on one click?"

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Budapest, Hungary

    Re: Mixed events bug

    You may check what happens if "mwl.loadURL('http://www.google.com'); checkControlBox();" is extracted into a separate function.

  3. #3
    Registered User
    Join Date
    Oct 2013

    Re: Mixed events bug

    Thanks for your answer, wizard_hu_.

    I tried. First I created a function (1). On first sight, it looks good. Google loads (2). But once I try to return back from "http://www.google.com", browser opens dialog, there is a close application popup(3). After I confirmed, my application shows up (4). Next press on back button, message "Corrupted Application" - Error Code 6305 - appears (see screenshots) (5).

    Conclusion: using mwl.loadURL in javascript leads to a system failure.





    Last edited by Lukas Bicus; 2013-10-23 at 14:30.

  4. #4
    Registered User
    Join Date
    Oct 2013

    Re: Mixed events bug

    I forgot to explain my motivation: I want to save application status before leaving application. But I'm unable to do that without calling a javascript function.

Similar Threads

  1. Using Mixed Layouts in LWUIT
    By rajan701v in forum Mobile Java General
    Replies: 4
    Last Post: 2011-03-08, 09:52
  2. Mixed Keyboard
    By asdfghjkl_asdfghjkl in forum Symbian
    Replies: 5
    Last Post: 2007-01-18, 03:40
  3. Mixed Voice+Data
    By asdfghjkl_asdfghjkl in forum Symbian
    Replies: 1
    Last Post: 2006-12-06, 16:04
  4. SIP multipart/mixed content
    By jgarinf in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2005-01-21, 03:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts