×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    3

    html5 + javascript examples

    Does anyone have working examples of connecting to the music api with HTML and Javascript.

    For example: Facebook jquery connection

    $.getJSON('http://graph.facebook.com/zombies', function(fbResults) {
    var test = window.alert(fbResults.about)});

  2. #2
    Registered User
    Join Date
    Jan 2013
    Posts
    3

    Re: html5 + javascript examples

    Problem solved thanks to a message from one of the architects "S R" thanks.

    Code:
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script>
        $.getJSON("http://api.ent.nokia.com/1.x/gb/?domain=music&q=love&app_id=demo_qCG24t50dHOwrLQ&app_code=thisisyourdeveloperappcode&callback=?", function(json) {
       alert("JSON Data: " + json.data.items[0].id);
    });

    Replace the "thisisyourdeveloperappcode" with your app code which you get when you register as a developer.

  3. #3
    Registered User
    Join Date
    Jan 2013
    Posts
    3

    Re: html5 + javascript examples

    Code:
      
     http://code.jquery.com/jquery-latest.js
    
        $.getJSON("http://api.ent.nokia.com/1.x/gb/?domain=music&q=love&app_id=demo_qCG24t50dHOwrLQ&app_code=replacethiswithyourappcode&callback=?", function(json) {
       alert("JSON Data: " + json.data.items[0].id);
    });

Similar Threads

  1. HTML5 apps..
    By mrrekcuf in forum Nokia N9
    Replies: 4
    Last Post: 2011-09-16, 14:25
  2. html5 onclick
    By Meins in forum Qt
    Replies: 1
    Last Post: 2011-07-07, 10:22

Posting Permissions

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