1

First off, I want too say that I have never used JavaScript before so this is new to me. I just want to start playing around with calling APIs from the same webserver and output the resulting JSON in perhaps a textbox? Even the creation of textbox must be handled by the JavaScript. I am using ASP.NET with GET method for the API call.

Can someone please help me get started with this? I just need a little help to get me started in the right direction. Thanks!

1
  • There are tutorials all over the web for this Commented Mar 3, 2016 at 0:16

1 Answer 1

1

Have a look at a JavaScript library called jQuery.

You can do things like:

$.getJSON( "ajax/test.json", function( data ) {
    var $textarea = $("<textarea>");

    $textarea.val(data);

   $("body").append($textarea);
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.