Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Dec 2002
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    quick dhtml behavior question.

    I have a .htc behavior file.

    and when try to acces it like this

    Code:
    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.

    Code:
    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.

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts

  • #3
    New Coder
    Join Date
    Dec 2002
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Read the article. You can't use .htc from one website on another.

  • #5
    New Coder
    Join Date
    Dec 2002
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Last edited by rohanrehman; 08-07-2005 at 10:33 PM.

  • #6
    New Coder
    Join Date
    Dec 2002
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #7
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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/
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •