×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    54

    How to use the javascript to build such kinds of UI

    Hello everyone:

    I want to build a graphic user interface in WIDget.


    Like MSN:

    I am using a javascript in GUI side.

    It is a little bit like MSN.

    I can get the number of my friends in real time.

    For example ,if I receive 4:
    Then I want to build 4 blocks
    Each block include a image, a user name , a status.

    If I receive 8, then I build 8 such kind of blocks.

    the rescource is not a problem.

    What I want to know is that how to build this GUI dynamicly depend on the user's number.

    I am really newbie for web development.


    Can you give me some userful link or information.

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

    Re: How to use the javascript to build such kinds of UI

    Hi alicenan88,

    you can surely build dynamic elements and structures that depends on data retrieved from remote hosts. You should start by looking at some introductory JavaScript guides and tutorials (you'll find tons of those just searching the Web). You basically need 2 things to perform this kind of task:
    * XMLHttpRequest objects to retrieve the users
    * DOM manipulation to create and modify the widget DOM structure

    Done this, you can check the WRT section of Forum Nokia Wiki to see how components specific for Web Runtime can be implemented in a nice and compatible manner.

    Pit

  3. #3
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    54

    Re: How to use the javascript to build such kinds of UI

    Thank you for your answer.

    I already know how to use xmlhttprequest and xml dom

    but I just don't know how to build it dynamicly.

    I can use xml dom function to get the data from the xml ,but still don't know how do build a dynamic GUI

    Can you give me some key word for searching?

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

    Re: How to use the javascript to build such kinds of UI

    Hi alicenan88,

    on Forum Nokia Wiki you can find many articles that show how to dynamic GUIs starting from remote/local data. One example is this, that builds a list of items starting from a remote XML:

    http://wiki.forum.nokia.com/index.ph...Runtime_widget

    Hope it helps,
    Pit

Similar Threads

  1. Carbide.c++ build issues
    By stevenc9 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-10-19, 07:21
  2. Error in project build for Emulator Debug(WINSCW)S602ndFP@2
    By SanjayKhuntia in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2008-08-13, 11:47
  3. Replies: 0
    Last Post: 2006-11-23, 10:21
  4. ARMI Build for fep fails
    By Blkangel in forum Symbian
    Replies: 0
    Last Post: 2004-01-27, 09:50
  5. How UI load DLL to show another UI?
    By kangtk in forum Symbian
    Replies: 0
    Last Post: 2002-08-15, 07:06

Posting Permissions

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