Friday, 15 January 2010

javascript - Replacement of HTC files -



javascript - Replacement of HTC files -

i working on project using html components files (.htc), want upgrade project should work on browsers ie10, htc files no longer supported ie10. please give me solution how can convert part of project using htc files. please refer below code:

this.style.add("behavior", "url(xyz.htc)");

i want replace htc file , code written within file. should needs set in replacement of htc file.

please help.

update .htc (html components) custom attributes js since ie10 standard mode doesn't back upwards htc.

check link

edit :

var method_behavior = { get: function () { homecoming this.style.behavior }, set: function (val) { this.style.behavior = val } } //input if (!htmlinputelement.prototype.hasownproperty("behavior")) { object.defineproperty(htmlinputelement.prototype, "behavior", method_behavior); }

then in html page

<script src="new_js_file_name" type="text/javascript"></script> <script type="text/javascript"> function loaded() { document.getelementbyid("id_name").behavior = "new_behavior"; } </script>

javascript css internet-explorer xhtml html-components

No comments:

Post a Comment