ajax assignment

profilelmas
  1. In your cloud9 workspace, create a folder named ajax2. Place all the work you do for this assignment in this folder.
  2. Use the GitHub Markdown API to perform the following functionality for users. The user types in markdown into a textarea element. When the user clicks the transform button, Javascript submits the text to the raw mode GitHub markdown API and renders the result in the Web page. (Do not display the result in a popup window.) Make requests to the following url: https://api.github.com/markdown/raw.

I've left out a lot of details to give you practice with research. However, here is one hint that might help you solve the problem: Suppose result is the id of a div in your page. In this case, you can insert the HTML returned from Github into your Web page using the following.

document.getElementById('result').innerHTML = the-result-string
    • 11 years ago
    • 100
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      ajax_2_assignment.zip
    Bids(0)