阅读背景:

使用ajax将textarea信息存储到数据库中。工作正常,除非我以任何方式编辑textarea ..信息仍然存储但XMLHTTP永远不会关闭

来源:互联网 

Basically I call a function when user clicks save, this function takes the content from textarea and passes it to a php file that adds it to the database. I have a few js functions I use, one for switching between content and another for saving it. Anyway if i just click save without editing anything in the textarea, then everything works fine. However if I edit the text in any way (Even removing a letter and adding it back again) parts of the functions stop working. The part that is responsible for modifying content. I have marked the part that stops working.Basically I call a function when user clicks sa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: