Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question JSON help for noob

    Hello,

    I have coding experience but not with JSON. I am familiar with JavaScript and JQuery but not an expert with them. I am trying to write a function that gets data from the campusbooks.com api and just display it so I know that I am getting the data properly. They do not have an extensive tutorial on how to use there code so can someone help me out a little please...

    Its basically just creating a url (easy) and getting an XML responce from it. There is an option to get the data in a JSON format as well.

    What I need help on is how to actually get the response and extract the appropriate data I need. For example the title and author of a book.

  • #2
    New Coder
    Join Date
    May 2012
    Posts
    25
    Thanks
    0
    Thanked 1 Time in 1 Post
    I think this example will help,this is actually my understanding when i started using it,hope you will find it useful


    http://fundapass.blogspot.in/2012/06...is-is-not.html

  • #3
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Quote Originally Posted by sayannayas View Post
    I think this example will help,this is actually my understanding when i started using it,hope you will find it useful


    http://fundapass.blogspot.in/2012/06...is-is-not.html
    That link is for Java code, not JavaScript - so it will not be easy to adapt, or follow, it. Try this. Added: But you are using jQuery so explore their docs for .ajax, etc..
    Last edited by AndrewGSW; 09-30-2012 at 09:17 PM.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


  •  

    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
    •