You must Sign In to post a response.
  • Category: HTML

    How to covert htc component to javascript

    Hi,

    In my code div style is defined in .htc file. In control style=behavior: url(.//.htc) defined like that. But this code is not working in HTML 5 browsers. So how to rewrite these behaviors defined in .htc file to JavaScript? And how to assign those control styling?
  • #764317
    Hi chinnari,

    I had google'd and found something which may be useful to you.

    It is not possible that you could directly convert a .htc component to a javascript. That is, it's not possible automatically, in general. However you could convert it using jQuery's live event. But anyway, there are plenty of Javascript-only libraries for this.

    You may go through following URL's for code snippets:
    http://www.codeproject.com/Tips/525495/Update-htc-HTML-Components-custom-attributes-to-js

    http://forums.asp.net/t/2009029.aspx?Convert+htc+file+to+javascript
    Regards,
    Shashikant Gurav
    shashikantgurav22@gmail.com


  • Sign In to post your comments