www.webdeveloper.com
Results 1 to 2 of 2

Thread: JavaScript / JSON / HTTP / API?

  1. #1
    Join Date
    Sep 2011
    Posts
    6

    JavaScript / JSON / HTTP / API?

    Can anyone point me to an article, book, or something that talks about the ideas behind building a basic API for a site? I've made good progress on the various pieces of the puzzle, but I've got an incomplete picture in terms of how things fit together.

    This is sort of a continuation of an earlier post about the client-heavy approach that seems to be gaining popularity these days, Which technologies are key in a set up where the client does lots of the heavy lifting and makes calls to an API on the server for content? So far, it looks like...

    JavaScript and available libraries can take care of a lot of the client side.

    Data can be moved between the client and server via JSON, which is much lighter than XML.

    Is it AJAX that one uses the make the call?

    I'm trying to get a handle on how all the pieces fit together. Maybe I should dig through the jQuery source and see what getJSON() does?

    I honestly don't expect hand-holding and I have done some digging on my own. A bit of a nudge or hint would be very much appreciated.

  2. #2
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    use jsonp to expose discrete chunks of well-organized info to other sites and devices using simple javascript-based embed handlers.

    ajax is no good, xml is a PITA, and use can simply use <script src="http://mysite.com/api?topic=obama"></script> instead of getJSON()...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles