I've recently been stuck in an odd situation. I have to run a webpage through the .net WebBrowser. The site i'm running through it has rounded corners but because I'm running it through the IE browser it doesn't display them. I've been injecting some stuff already straight into the page (once it finishes loading) - Remember that. I first decided to inject CurvyCorners.js to allow it correctly display the rounded edges. Much to my dismay, however, CurvyCorners sucks and is severely glitchy. To get it to work in the first place, though, I had to go into the source and force it to run because it was waiting for the document to load, which it had, just only before the script was injected.
I've read online that Css3Pie works much better so I decided to try and get it to work instead. I've gotten it all to inject (the Css3Pie.js file injects fine and the HTC is loaded using the behavior css value). I can't seem to convince the HTC file to run without it receiving the loaded event. I've tried doing the same thing I did to CurvyCorners but even if I put the init()
function call right at the end of the source code, nothing runs.
Does anybody know what I'm doing wrong? I can't seem to find any onloaded
or ready
events in the main Css3Pie.js file, I only find references to it in the .htc file.
You either user the js file OR the htc file. If you are using the .htc file, make sure you are sending it with the right MIME type (text/x-component
).
The htc should run without any JS to trigger it.