Web Analytics Made Easy -
StatCounter Reverse the words in a sentence as per length as ajax request - CodingForum

Announcement

Collapse
No announcement yet.

Reverse the words in a sentence as per length as ajax request

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reverse the words in a sentence as per length as ajax request

    A form where user enters two sentences.Sentence is terminated by dot (.) character.

    On submit button click, send the input sentence as Ajax request XMLHttpRequest.

    The backend should reverse the words in each sentence and send back the result as XML Data.

    Each reversed sentence should be in separate XML block.

    For Example, if the two sentences are:

    "I am a good student. I will get good job."

    The displayed results should look like
    "Student good am a I. Will good job get I."


    Please help!!!

  • #2
    This sounds like homework. Show some code first.

    Does it have to be an AJAX function?

    Also need to know the XML tags.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎