×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2012
    Location
    Hull, United Kingdom
    Posts
    48

    Help needed creating exit command from an image

    Hi,
    ive being trying to add an image to my widget where i tap the image and the app closes.. Im a tad bit stuck but i did find this
    Code:
     <div id="Exit" title="" class="PushableBlock" onclick=
                "_1();">
                    Exit
                </div>
    is that any use ?

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: Help needed creating exit command from an image

    Hi

    In my opinion it does not : all here are a custom specific objects -- function, CSS class , etc.... - there is no any system call in that code fragment.

    By default right soft key is assigned to the "Exit" function, which terminates a running widget. To alter default behavior you need to use setRightSoftkeyLabel()
    Have a look at the article "Managing widgets on mobile devices" about widget life cycle and how to alter it by using widget.onhide, widget.onexit events

    Regards,
    Igor

  3. #3
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Help needed creating exit command from an image

    Hi,

    calling widow.close() should do the trick.
    Here is an old thread which has sample code from Jappit:
    http://www.developer.nokia.com/Commu...l=1#post639055

    Br,
    Ilkka

  4. #4
    Registered User
    Join Date
    Jun 2012
    Location
    Hull, United Kingdom
    Posts
    48

    Re: Help needed creating exit command from an image

    Quote Originally Posted by isalento View Post
    Hi,

    calling widow.close() should do the trick.
    Here is an old thread which has sample code from Jappit:
    http://www.developer.nokia.com/Commu...l=1#post639055

    Br,
    Ilkka
    I tried this and it kinda did nothing :/
    i suppose i can just use the toolbar.

Similar Threads

  1. Exit-command disappearing
    By sarparan in forum Mobile Java General
    Replies: 3
    Last Post: 2009-11-25, 17:04
  2. Series 60 & Command.EXIT
    By dmonk in forum Mobile Java General
    Replies: 10
    Last Post: 2009-10-28, 17:16
  3. Exit Command from Symbian OS
    By Sreeganesh S in forum Mobile Java General
    Replies: 4
    Last Post: 2006-07-26, 23:51
  4. UNDESIRED Exit command key.
    By tektronic in forum Mobile Java General
    Replies: 4
    Last Post: 2005-05-13, 18:27
  5. Getting rid of the Exit command
    By luemkemann in forum Mobile Java General
    Replies: 1
    Last Post: 2003-05-25, 09:08

Posting Permissions

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