PHP and JS with the Ajax in the following error, do not know why

Source: Internet
Author: User

Reply to discussion (solution)

The append_comment is implemented as follows

Here is PHP in charge of dynamic update a TEXTAREA

The bottom is the original PHP, which uses Ajax to implement asynchronous refreshes

Here is where the append_comment is called in add_comment

Figure looked tired, why not stick code out.
What's the code for the error?

Figure looked tired, why not stick code out.
What's the code for the error?
Well, the code can't be copied, dear.

Figure looked tired, why not stick code out.
What's the code for the error?
The error is the first picture Ah, with chrome debug time

What's the use, to see your code before and after the line
What is comments_713? Have you defined it before?

What's the use, to see your code before and after the line
What is comments_713? Have you defined it before?
comments_713 is a string that needs to be passed to Append_comments, which is the append_comment parameter comment_id.
Eldest brother, really can not upload code ah, can not copy, the company's server inside.

If it's a string, shouldn't we enclose it in quotation marks?
Append_comment (713, ' comments_713 '); Didn't you add the ending semicolon?

If it's a string, shouldn't we enclose it in quotation marks?
Append_comment (713, ' comments_713 '); Didn't you add the ending semicolon?
That should be the case.
But I'm going to do that with a variable.

Well, it's a confusing plot, I can't read it.

The error is the Append_comment function
And you're looking for a reason for Add_comment's argument.
How can i solve the problem?

Append_comment look like no problem, see update_comment this bar, or window.open open that Exe_sql.pho page has errors, troubleshooting problems do not understand? Other people can't help you troubleshoot problems, you should first troubleshoot problems to find the code where the problem can be solved

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.