View Full Version : quick dhtml behavior question.

08-07-2005, 07:53 AM
I have a .htc behavior file.

and when try to acces it like this

img {
behavior: url("http://www.site.com/behavior.htc");


it dosent work.
see I must access it externaly because the html file using the behavior is emailed so its not sitting on the server.

img {
behavior: url("behavior.htc");


relative path won't work because the html file again is not being viewed on the server.
this method is fine if the html file is on the server.

08-07-2005, 07:58 AM

Hope this helps...

08-07-2005, 08:18 AM
nope din't help does this have to do with " cross site scripting"?

donst work becase of security issues? but then can I not allow it ?

the htc file is on my iis server.

08-07-2005, 08:23 AM
Read the article. You can't use .htc from one website on another.

08-07-2005, 08:38 AM
but in the article he asks same question as me but no answer.

what does he have to do server side to get it to work? he was able to do it on the browser.

08-08-2005, 06:21 AM
c'mon I am sure someon else has tried this ..........

I have an png behavior so ie can diplay alpha trans on the png,

but since the html page is being emailed I have to link every thing to the domain where the .htc behavior file is

08-08-2005, 06:24 AM
Impatient people never get far on these forums. Maybe a different alternative to making the pngs transparent might help http://www.alistapart.com/articles/pngopacity/