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 |
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/
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...