- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 100 000 and 250 000 dollars
- Exclusive Author
- Author was Featured
- Item was Featured
- Beta Tester
- Has been a member for 3-4 years
- Spain
Hi.
I’m using this wonderful (and straight forward!) css to manage some user interaction in my next template.
The problem is that is not supported on IE nor Opera. http://caniuse.com/pointer-events
Anyone has reached an elegant solution for this?
Thanks in advance!
<”}}><
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 1 and 9 items
- Europe
- Exclusive Author
- Has been a member for 2-3 years
- Item was Featured
- Referred between 100 and 199 users
Hi. What are you trying to do with it? Disable the click function on an anchor?
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 100 000 and 250 000 dollars
- Exclusive Author
- Author was Featured
- Item was Featured
- Beta Tester
- Has been a member for 3-4 years
- Spain
Is not an anchor but an image. But yeah, that’s what i have.
The code is bit complex to post it here, but let’s resume: there is an image inside a div that opens some content on click function. That content has a close button. Right now i’m using pointer-events “none” applied to the image once clicked, and reseted to “auto” when close button is triggered. It works perfectly on FF and Chrome.
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 1 and 9 items
- Europe
- Exclusive Author
- Has been a member for 2-3 years
- Item was Featured
- Referred between 100 and 199 users
Why not toggle state with jquery? Other than that you cannot do anything.
- Sold between 250 000 and 1 000 000 dollars
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
- Microlancer Beta Tester
- Author was Featured
- Bought between 50 and 99 items
- Referred between 50 and 99 users
IE10 still do not support, damn it… i do not know what i can say for IE.
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 100 000 and 250 000 dollars
- Exclusive Author
- Author was Featured
- Item was Featured
- Beta Tester
- Has been a member for 3-4 years
- Spain
@duotive – Toggle doesn’t work for me in this case, is not a button that itself open&close. Is an image that displays besides the opened content, and it does some other things apart from opening that content. That’s why i want to disable the possible user click on it again once opened. Uhmmm. i’m afraid i’ll need to write a huge function for the f* ie. 
@codestar – yeah, i saw it. Can’t understand why they don’t support it, not even on their latest releases, pretty useful, btw.
How about using a wrap around the image with z-index/transparent png/gif if IE.
Not sure if that is along the lines of what your trying to do, but I had wrong z-index’s on something I’m working on which made the below content not clickable.
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 100 000 and 250 000 dollars
- Exclusive Author
- Author was Featured
- Item was Featured
- Beta Tester
- Has been a member for 3-4 years
- Spain
webcreations907 said
How about using a wrap around the image with z-index/transparent png/gif if IE. Not sure if that is along the lines of what your trying to do, but I had wrong z-index’s on something I’m working on which made the below content not clickable.
Nice trick! Will try it out later and see if i can get that working. Thanks a bunch!
No prob.
Another way maybe http://jsfiddle.net/y9a7w/8/?
Think that’s how to fiddle, never used it before.
- United States
- Has been a member for 4-5 years
- Exclusive Author
- Author was Featured
- Sold between 50 000 and 100 000 dollars
- Item was Featured
- Contributed a Tutorial to a Tuts+ Site
- Author had a Free File of the Month
Earlier this year I had this same problem and discovered that when testing for the pointer-event feature, Opera was reporting that it supported it even though it did not. Not sure if this is still true, just thought I’d mention it in case it helps.
