Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User Aimevous's Avatar
    Join Date
    May 2010
    Posts
    29
    Can anyone kindly explain to me what does the following code from the viewmanager demo of the GuaranaUI do?

    From var SecondView:

    [code]
    callAjax: function(callback) {
    // AJAX

    if (callback) {
    callback.apply(this, ['json']);
    }
    },

    show: function() {


    this.callAjax(function(response) {
    this.getContainer().show();
    });
    }[/code

    More specifically, what is the ajax part doing?

  2. #2
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi Aimevous,

    the callAjax function is just a mockup function that shows how a remote (Ajax) call can be implemented and tied to a callback in order to display the view container.

    The mockup function doesn't actually implement this feature, and just calls the 'callback' function, but can be easily modified to implement the whole functionality.

    Pit

Similar Threads

  1. Needs clarification regarding updates
    By adam7777 in forum Themes/Carbide.ui
    Replies: 2
    Last Post: 2008-11-20, 12:54
  2. Clarification
    By manikantan in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-07-18, 12:30
  3. Needs Clarification
    By jigneshshah in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-10-19, 10:22
  4. Need clarification
    By idhafi99 in forum General Messaging
    Replies: 1
    Last Post: 2002-09-25, 18:29
  5. Some clarification on MMS
    By jarlrmai in forum General Messaging
    Replies: 3
    Last Post: 2002-08-23, 07:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved