How to use responseText in ajax

Updated on technology 2024-02-09
12 answers
  1. Anonymous users2024-02-05

    ()"update_result").innerhtml=;

    updatedb").disabled=true;

    else{"update_result").innerhtml="

    Updating ......";

    get", url, true);

    Another page; "Update Success! ");The value of is Update Successful

  2. Anonymous users2024-02-04

    This is the data that your daemon returns, and whatever is returned. Just traverse it in the background, and then output it as a string is this responsetext

  3. Anonymous users2024-02-03

    This can be: var gtext=;

    if("The string to be judged")!=-1)

  4. Anonymous users2024-02-02

    xml. You can iterate over the values, extract them, and compare them with the values in your text box in an if statement.

    It is recommended to use JSON to transfer it to be simpler.

  5. Anonymous users2024-02-01

    var r="()"

    data = eval(r)

    The outermost one"("with")"Be sure to add, this is the most common error in json.

  6. Anonymous users2024-01-31

    The most popular flavor is the chilled drunken bean curd.

  7. Anonymous users2024-01-30

    Kindness. Downstairs is right. You can use alert(

    At the same time, you can also return just an ok to indicate that the username exists. Remember not to show up with superfluous things.

    The problem may not come out on the space here. Under normal circumstances, I would not use Chinese characters to mark success. Because kanji can sometimes make mistakes. You can output the responsetext first to see what it is...

  8. Anonymous users2024-01-29

    You are in front of alert(

    If I'm not mistaken, the one returned has a space.

  9. Anonymous users2024-01-28

    The jQuery exacerbation faction handles the xmlhttprequest of js, and directly passes the method back to you, which is the success function. Therefore, the success method is not really an ajax ** function, but it is just called in the response function, so there is no response parameter in the success method.

  10. Anonymous users2024-01-27

    The result is just a string, not a collection. If you want to get more data, you can use it. The premise is that you write all the data into an XML file. After this xml, you can parse the xml.

  11. Anonymous users2024-01-26

    If you don't use a framework, then build your own json object, and then you can use it directly in the client server, which is much easier than the operation.

  12. Anonymous users2024-01-25

    You can use json to return a string, and use the js eval method to parse it directly as an object.

    dwr is also available, it is to be configured, and it feels troublesome.

Related questions
14 answers2024-02-09

Ingredients: 100 grams of butter, 60 grams of powdered sugar, 150 grams of whole wheat flour, 1 egg (about 50 grams), 10 grams of cocoa powder. >>>More

18 answers2024-02-09

1) If the water in the tank is 6 cm, it is obvious that all the iron will be submerged in the water. >>>More

12 answers2024-02-09

The principle of ultrasonic eye bag removal is to use advanced large-scale ultrasound equipment to first locate the eye bag, determine its size and position and the interrelationship between the nerves and blood vessels of the eyeball, and display it on the computer screen, and then apply the phacoemulsification effect to quickly dissolve the fat and remove it with the eye film to completely absorb it without surgery. No damage**. No anesthetics. >>>More

9 answers2024-02-09

Erudite, interrogative, thoughtful, discerning, and diligent. (The Book of Rites).

4 answers2024-02-09

How to copy things on the computer on a USB flash drive:Tools Ingredients: Lenovo Xiaoxin Air 15, Windows11, Kingston USB flash drive 1, find the file you want to copy, and then right-click the file to open the right-click menu. >>>More