×

Discussion Board

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

    Clarification on ViewsManager Demo

    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
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Clarification on ViewsManager Demo

    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. Clarification
    By manikantan in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-07-18, 12:30
  2. Needs Clarification
    By jigneshshah in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-10-19, 10:22
  3. Need clarification
    By idhafi99 in forum General Messaging
    Replies: 1
    Last Post: 2002-09-25, 18:29
  4. 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
  •  
×