Some time ago wrote an article, is about using AJAX technology to achieve IE tree without refreshing method.
Original: http://bliss.cnblogs.com/archive/2006/03/15/350695.html
In the original I said in JavaScript syntax, when IE tree is onclick, get ie tree value.
Because at that time I took the value of IE tree is clicked on the index of the node, so, get value, the string intercept function can be taken to the current click of the index value of the node, and then, using the Ajax method, Upload the index value from the HTML page to the CS code page for operation.
At that time because this method is feasible, so wrote the essay. However, I have overlooked the point that this method does not all works in all systems! I blame myself for not moving the test.
How did I find out about this bug?
Because I redo an operating system (I used to use the WINDOWS2003 language version, only in this system, using the value of the method to do so, the reason is not clear), I replaced the Simplified Chinese version of 2003, the value of the method is not good.
At that time, I had a very urgent task in the body, I thought, this can be finished! What can I do? Is that the reason for the system? Then I reload a WINDOW2000 system (my computer will be loaded, annoying!) ), but it is not good to make!
Oh, God! Help me, please!
I thought about it for a long time and finally decided to go back to writing that method (long overdue).
The process I said, anyway, the cost of a great effort, finally I found the IE tree Clickednodeindex method. The code is as follows:
<script>
function Treenodeclick (nodeindex)
{
alert (Nodeindex);
}
</script>
<iewc:treeview id= "TreeView1" onclick= "Treenodeclick (this.clickednodeindex)" name= "Tree" runat= "Server" <IEWC :treeview>
Here, I take this to correct the mistake I made last time. In the future before writing essays, I will conduct detailed testing in the site.