Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-06-2012, 08:58 PM   PM User | #1
njb64
New to the CF scene

 
Join Date: Aug 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
njb64 is an unknown quantity at this point
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.
njb64 is offline   Reply With Quote
Old 09-30-2012, 07:10 PM   PM User | #2
sayannayas
New Coder

 
Join Date: May 2012
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
sayannayas is an unknown quantity at this point
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
sayannayas is offline   Reply With Quote
Old 09-30-2012, 07:53 PM   PM User | #3
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
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..
__________________
"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

Last edited by AndrewGSW; 09-30-2012 at 08:17 PM..
AndrewGSW is offline   Reply With Quote
Reply

Bookmarks

Tags
jquery, json, xml

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:22 PM.


Advertisement
Log in to turn off these ads.