Treeview of IE web control. HTC reported that the tagname is null or not an object.

Source: Internet
Author: User

When I recently used Treeview, I found a strange problem.

Tree control is normal when nodes are added, deleted, or modified. However, when I move one node to another parent node, Treeview. HTC reported that the tagname is empty or not an object.

LookCodeI didn't find anything wrong. I don't know why.Try alert () and find that the number of prompts is too large to locate the error.

I am not very familiar with JS, so I want to judge the condition that is null.In row 210th of Treeview. HTC, I added the tagname judgment. The Code is as follows:

// If you don't judge whether it is null, it will report error when you move a node from its parent to another

// Add By SWL on

If (textnode. tagname. value! = NULL ){

...

}

A simple line of code actually solved my problem. Although I don't know if this change is appropriate, there is no problem with Treeview. I think it is okay for the time being.

If you know what is wrong, please reply to me

I am very grateful...

Related Article

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.