|
Howdy -
Don't have code right in front of me, but here goes. I'm using some slick javascript to override the default right click context menu, and pop up a custom menu whenever a user right-clicks on an html form element because I want to take some user specified action (via the popup menu) on the field's value. This works fine in both Firefox 1+ and IE 6+, which are the target browsers, until I disable the fields, which is the realistic scenario. It still works fine in IE, but not in Firefox. In FF, nothing happens on the right-click. Because of how the markup is created and rendered (i.e., each form field element is rendered inside a div, and the onclick call is inside the div), I can apply a little workaround for FF by adding a very small amount of right padding to each form element div, so if I right click just barely outside the right edge of the form field (but apparently still inside the div), the popup menu works. This will probably be a pain for my users, and I want to find a better solution so as not to discourage FF users. BTW, I can't really mess much with the way the form elements are rendered in general. Any ideas?? Is this a FF feature/bug? Thanks in advance for any help.
- Brave Soul
|