Correcting the method of using Ajax to realize no refreshing value of IE tree

Source: Internet
Author: User
Tags html page version
ajax| Refresh | no refresh

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" 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.



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.