views:

44

answers:

1

How can I convert any .htc file into .js and use the resulting JavaScript?

For example, this is a .htc file: http://curved-corner.googlecode.com/files/border-radius.htc. I want to convert it into .js.

I want to convert it because the CMS I'm working with will not allow me to attach the .htc file. I think it's because of a mime type issue.

+1  A: 

It is not possible to convert any .htc file to an "equivalent" .js file. That is, it's not possible automatically, in general. However for the specific file you've posted, you could convert it using jQuery's live event.

But anyway, there's plenty of Javascript-only libraries that do the "border-radius" thing, why do you need to specific convert this one? A quick google search turns up dozens.

Dean Harding
Thanks for reply . ok then this conversion then i will go for other solution
metal-gear-solid
it's not possible so i selected your answer.
metal-gear-solid