×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    63

    How to remove setRightSoftkeyLabel() functionality?

    Once i have setRightSoftkeyLabel(), publically for every page.. now i would like to remove that functionality on single page...please provide solution.
    Regards,

    Ravindra Suthar

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    60

    Re: How to remove setRightSoftkeyLabel() functionality?

    Quote Originally Posted by rsuthar View Post
    Once i have setRightSoftkeyLabel(), publically for every page.. now i would like to remove that functionality on single page...please provide solution.
    I recommend not thinking in terms of "pages" when it comes to widgets. Softkey labels are not set "per page" but rather globally within a widget. You are free to set the softkey label to whatever you want, whenever you want, as well as to restore it to the default functionality. You can call the setRightSoftkeyLebel() function at absolutely any point in time that you want to change the label and callback function.

  3. #3
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    63

    Re: How to remove setRightSoftkeyLabel() functionality?

    I have set it globally... but in single page i need different. So, That is little problematic.
    Regards,

    Ravindra Suthar

  4. #4
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    60

    Re: How to remove setRightSoftkeyLabel() functionality?

    Quote Originally Posted by rsuthar View Post
    I have set it globally... but in single page i need different. So, That is little problematic.
    I'm not sure I follow.. If you actually have "pages" (i.e. separete HTML files) then just call the function to change the softkey label when you switch from one "page" to another. Is there some reason why you can't do that?

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    2

    Unhappy Re: How to remove setRightSoftkeyLabel() functionality?

    Hi, I have similar problem....

    I use setRightSoftkeyLabel in main html, it works. But after going to other html page (by <a href="XXX.html">), and call setRightSoftkeyLabel again, it cannot change the right label... I've checked and seems that window.menu returns false and therefore cannot work properly...

    any idea?

  6. #6
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    60

    Re: How to remove setRightSoftkeyLabel() functionality?

    Quote Originally Posted by jenpo View Post
    Hi, I have similar problem....

    I use setRightSoftkeyLabel in main html, it works. But after going to other html page (by <a href="XXX.html">), and call setRightSoftkeyLabel again, it cannot change the right label... I've checked and seems that window.menu returns false and therefore cannot work properly...

    any idea?
    Don't use links to move away from the main HTML. Rather fetch stuff with XHR and modify the current DOM of the main HTML. That way you keep being within the widget context rather than moving into a web context where you don't have access to the widget object.

    In general you should not think of widgets as being composed of "HTML pages" with links between the pages etc. Rather think of a widget as JavaScript code and a DOM tree that you can manipulate to produce whatever visual user interface you want to have at any given time.

  7. #7
    Nokia Developer Expert
    Join Date
    Oct 2008
    Posts
    9

    Re: How to remove setRightSoftkeyLabel() functionality?

    Hi,

    Thumb-rule while creating the widget-UI advised not to use multiple pages for multiple views in the application

    Generally, will have each page for each view. Rather doing that way, divide MainHTML page into multiple views by using "<div>" or any suitable HTML Tags. And have a logic to show/hide the suitable view.

    And finally, answer to the first question "How to remove setRightSoftkeyLabel() functionality?". Check the following code

    Code:
    // to set
    setRightSoftkeyLabel("Settings", "showSetting();");
    
    // to remove the Right-Softkey-Label and assigned function
    // pass EMPTY label STRING and NULL or non FUNCTION TYPE arguments
    setRightSoftkeyLabel("", null);
    Thanks,
    Raghava

  8. #8
    Nokia Developer Expert
    Join Date
    Oct 2008
    Posts
    9

    Re: How to remove setRightSoftkeyLabel() functionality?

    @Moderator: This is repeated entry, please delete this reply
    Last edited by raghava.chinnappa; 2008-11-25 at 04:58. Reason: Repeated entry

Similar Threads

  1. How to Safely remove Mobile from PC
    By Computer_time in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2009-07-30, 02:05
  2. Signing - problematic functionality
    By stenlik in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2006-12-12, 08:22
  3. Remove contact Using JSR 75 for Nokia 6230i Device
    By sirishak in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2006-04-06, 08:30
  4. How to remove menu?
    By silverparasol in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-08-09, 09:43
  5. 6600 - fails to remove package
    By dchiaramello in forum Symbian C++
    Replies: 4
    Last Post: 2004-02-25, 17:17

Posting Permissions

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