Learning jquery (1), the first grid that can be dragged

Source: Internet
Author: User
When I was interviewing some days ago, I was asked if I would use jquery? I said no. Could I use. Net gridview? I wrote CSS directly when I said it was rarely used, so I was rejected... haha, joke. Of course there are other reasons.
I don't have to do anything recently. I want to learn jquery, and then I want to write a grid that can drag and drop columns (in fact, there are powerful components like flexigrid. Why do I write this ), this will speed up your development.
When I got started with jquery, I found it very powerful. $ and each alone made me very useful. I used to write dom for a long time. I just took a look at it. Slowly, I have a certain understanding of the Javascript writing method, and I will use it as soon as I learn it. Finally, I made this stuff.
No ff and IE6, so I only used IE7 for testing. If you have any suggestions or suggestions, please give me some suggestions.
/Files/poplau/careygrid.rar)
In fact, the basic principle is to first create a div box, and then write data in JSON format to it. The table header and format are defined in the data.
Simple functions.
I am very happy to see the reply. As required, I continued to write a function that reads data from the table and named it version 1.0.2. Haha
/Files/poplau/careygrid1.0.2.rar
However, it takes a short time and is not robust, that is, some fields must be entered in the table. If not, an error may occur. Continue to modify it.

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.