×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    a quick question: does this work: uiManager.setView(null)

    Hi all,

    i'm trying to remove a view from the uiManager and i read that i just have to set the parameter of setView to null. But i got this error:

    "triggerEvent: 3 >> TypeError: Cannot read property 'id' of null"

    my code was:
    uiManager.setView(null);

    So how do we properly remove a view from the uiManager so that nothing will be displayed on the screen?? Thanks...

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: a quick question: does this work: uiManager.setView(null)

    Hi darklight721,

    just checked UIManager, and noticed that a line of debug code that could cause this error. To solve this, try opening UIManager.js (inside WRTKit/UI/) and comment the following line (should be line 146):

    Code:
    uiLogger.debug("View set to " + view.id);
    Pit

Similar Threads

  1. a quick question....
    By trisonetwo in forum Mobile Java General
    Replies: 4
    Last Post: 2008-05-15, 11:50
  2. Quick question
    By lukaszp in forum Bluetooth Technology
    Replies: 0
    Last Post: 2007-03-22, 12:33
  3. Quick Question
    By yap in forum Mobile Java General
    Replies: 2
    Last Post: 2006-12-23, 07:59
  4. quick question
    By jifdave in forum Bluetooth Technology
    Replies: 0
    Last Post: 2004-07-22, 00:18
  5. A quick question, thanks
    By w_xuefei in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2004-05-13, 07:59

Posting Permissions

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