WebFaction
Community site: login faq

This one is driving me mad. Django and csshover3.htc

Attempting to use this. http://www.xs4all.nl/~peterned/csshover.html The IEH HTC :hover pseudoclass workaround.

I have the usual media.domain.com approach required by django. If I add the general approach to the CSS like so:

body { behavior: url(../css/csshover3.htc); }

nothing happens. I've got an alert in the HTC file to make sure I don't miss a working path combination. Putting in an absolute path finds the HTC but IE responds with Access Denied warnings. Presumably as part of an attempt to stop XSS issues.

The path style shown works fine for a background image so the htc should be found. Tried every combination I can think of.

Any ideas.

asked 18 Dec '10, 14:51

Parthian
16410
accept rate: 0%

We would need at least a url showing the issue to be able to look. What does the template code look like? What does the rendered html look like? I do not use windows so I could not do any extensive testing. Typically css/js issues like this are syntax related. Since you are wrapping js around Django you should be sure your Django is rendering the html the way you want with out any javascript. You will also want to try a control of this code with pure html. This can be done with a 'direct_to_template' directive in urls.py, http://docs.djangoproject.com/en/dev/ref/generic-views/

(18 Dec '10, 15:05) johns

John, thanks for that. Couldn't show the URL as it is for a product which is hush-hush for now.

Abandoned attempt to use csshover.htc. Suspect no one uses this approach to fix IE6 hover problems with Django. Using Fiddler it appears that background URL uses the media path but behavior URL somehow decides to use the site path. So the HTC isn't found. Using an absolute URL resulted in Access Denied. Perhaps this is impossible.

Went with a jQuery solution instead. Drop down menu now works on IE6. Hope someone using IE6 appreciates the extra work...

(19 Dec '10, 13:23) Parthian
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×12

question asked: 18 Dec '10, 14:51

question was seen: 3,773 times

last updated: 19 Dec '10, 13:23

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM