I wrote an article about how to implement IETREE with AJAX skills. In the original article, I used JAVASCRIPT syntax to obtain the IETREE VALUE when IETREE is onclicked. Because the value I obtained at that time contains the IETRE
I wrote an article some time ago about how to use AJAX techniques to implement IE TREE refreshing.
In the original article, I used JAVASCRIPT syntax to obtain the VALUE of the IE TREE when the IE TREE is onclicked.
Since the value I obtained contains the INDEX VALUE of the node clicked by the IE TREE, after obtaining the VALUE, use the string truncation function to obtain the INDEX value of the currently clicked node. Then, use AJAX to upload the INDEX value from the HTML page to the CS code page for control.
At that time, because this method was feasible, I wrote that article. However, I have neglected that this method is not applicable to all systems! I blame myself for not performing a migration test on it.
How did I invent this BUG?
I have redone a control system (I used the Windows multi-language edition. I can only use the VALUE method in this system, but I have not figured out the reason ), I changed to the simplified Chinese version of 2003, and the method of getting the VALUE is difficult.
At that time, I had a very urgent task, and I thought it would be over! What can I do? Is it because of the system? Then I re-installed the WINDOW2000 system again, but it is still difficult!
After thinking for a long time, I finally decided to write the method again (it should have been like this for a long time ).
I won't go into details about the process. I spent a lot of effort and finally found the clickedNodeIndex method of IE TREE. The code is as follows:
Reference content is as follows:
Script
Function TreeNodeClick (nodeindex)
{
Alert (nodeindex );
}
Script
Here, I want to correct my previous mistake. Before writing a document, I will perform a specific test and place it on the website.