HTC & element behaviors in Internet Explorer.

Source: Internet
Author: User

Yesterday I read an article about Internet Explorer behaviors.

Http://msdn.microsoft.com/msdnmag/issues/1200/cutting/

By combining behaviors and HTC, you can use scripts to create code modules and controls on the client.

HTC behaviors has three main forms: attached behavior, element behavior, and viewlinks. attached behaviors can help define any HTML element in the form of CSS styles, while element behavior is equivalent to curing the Custom User Tag Element. Viewlinks technology makes HTC code more independent.

The following is the tabstrip control using behaviors:


This is colorpicker:


In fact, after you define your HTC behavior, it means that these client controls need to be represented by a custom tag, and these controls can be reused in multiple places. You can also use attribute or JScript on the tag to set the attributes exposed by HTC.

These are only part of Internet Explorer behaviors,

For more information about behaviors, refer:

Http://msdn.microsoft.com/library/default.asp? Url =/Workshop/author/behaviors/Overview. asp

Reference for HTC:

Http://msdn.microsoft.com/library/default.asp? Url =/Workshop/components/HTC/reference/htcref. asp

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.