JQuery RESTful GET an object

I am looking for a way to get data from a url.  The url is a RESTful service and it is posting information about an employee.  The URL accepts one parameter, the employee id.  So knowing that, how would I build the Jquery so that it could pull that record and be able to parse the information to the text fields on a page.  SO in essence, the url could be http://employeeinfo/empid?=111

It would parse the following information once it pulls the RESTful call:

Employee ID
Employee First Name
Employee Last Name
Employee Department ID
Employee Street Address
Employee Zip code
Employee State
Employee Phone Number
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
Do you want to create a web service or to consume it? In the second case it depends on the return value. When it's already JSON then you don't need to parse anything, cause you can use it directly.
VBBRettAuthor Commented:
Let's just say the Web Service will be a black box with functionality and in my case, I really don't know what it is doing, I just need to know how to pull the data using a url with the requirements I spelled out above.  So in my case, all I need to know is how to connect to the RESTful service URL using JQuery, making it an object and then parsing each property into a text field on a theoretical page.  Thanks!
>> I really don't know what it is doing
Then you need to find out.  If it supports jsonp, then you need to set that option in jquery (dataType:"jsonp").  If it is "raw" json, then as you are serving the page, you need to send an Access-Control-Allow-Origin header (https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) and in jquery set dataType:"json".

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.