I don't got time for no stinking opera!
-
Just reading through some javascript the other day when I found this gem.
// Gets cursor position inside in node element.
function GetCursorPosition(node)
{
// I have no time for Opera. What a nightmare to debug
if (navigator.userAgent.toLowerCase().indexOf("opera") != -1) return 0;Would now be a bad time to say that I found it here at CP? :laugh: +5 to the first person to correctly identify where!
enhzflep wrote:
found it here at CP
Well, someone doesn't like Opera! I wonder when this will be solved. (Or if)
Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions. Dave Barry Read more at [BrainyQuote](http://www.brainyquote.com/quotes/topics topic_technology.html#yAfSEbrfumitrteO.99)[^]
-
Just reading through some javascript the other day when I found this gem.
// Gets cursor position inside in node element.
function GetCursorPosition(node)
{
// I have no time for Opera. What a nightmare to debug
if (navigator.userAgent.toLowerCase().indexOf("opera") != -1) return 0;Would now be a bad time to say that I found it here at CP? :laugh: +5 to the first person to correctly identify where!
-
Are you talking about this[^]?
Read the article "Table Valued Parameters". --Amit
-
Just reading through some javascript the other day when I found this gem.
// Gets cursor position inside in node element.
function GetCursorPosition(node)
{
// I have no time for Opera. What a nightmare to debug
if (navigator.userAgent.toLowerCase().indexOf("opera") != -1) return 0;Would now be a bad time to say that I found it here at CP? :laugh: +5 to the first person to correctly identify where!
-
YOu found it right here[^]
At least artificial intelligence already is superior to natural stupidity
-
CDP1802 wrote:
I found it right here[^] I don't know where you found it :sigh:
Nope, ftfy too. You've both had it in your browsers today...
enhzflep wrote:
You've both had it in your browsers today...
Then it must be on the 'Reply to Message' page. ... Yes, I found it.
-
enhzflep wrote:
You've both had it in your browsers today...
Then it must be on the 'Reply to Message' page. ... Yes, I found it.
Yep, tracks cursor position inside the textarea where i'm writing now (hm, i'm feeling watched). At first glance, seems to be responsible for checking if cursor position is inside a tag when copying and pasting code. I may be wrong, but this is what I got in 1 min or so ;P EDIT: Now, thanks to Jochen I actually took his suggestion, so the 5 should go to him
Full-fledged Java/.NET lover, full-fledged PHP hater. Full-fledged Google/Microsoft lover, full-fledged Apple hater. Full-fledged Skype lover, full-fledged YM hater.
-
enhzflep wrote:
You've both had it in your browsers today...
Then it must be on the 'Reply to Message' page. ... Yes, I found it.
-
Yep, tracks cursor position inside the textarea where i'm writing now (hm, i'm feeling watched). At first glance, seems to be responsible for checking if cursor position is inside a tag when copying and pasting code. I may be wrong, but this is what I got in 1 min or so ;P EDIT: Now, thanks to Jochen I actually took his suggestion, so the 5 should go to him
Full-fledged Java/.NET lover, full-fledged PHP hater. Full-fledged Google/Microsoft lover, full-fledged Apple hater. Full-fledged Skype lover, full-fledged YM hater.
-
Yep, tracks cursor position inside the textarea where i'm writing now (hm, i'm feeling watched). At first glance, seems to be responsible for checking if cursor position is inside a tag when copying and pasting code. I may be wrong, but this is what I got in 1 min or so ;P EDIT: Now, thanks to Jochen I actually took his suggestion, so the 5 should go to him
Full-fledged Java/.NET lover, full-fledged PHP hater. Full-fledged Google/Microsoft lover, full-fledged Apple hater. Full-fledged Skype lover, full-fledged YM hater.
Yep - that's exactly what it does. With the evolution of "security" in browsers, handling Paste events has become more and more painful, so much so that the only way I can reliably handle it is to watch every elephanting keystroke in order to work out when a Paste event has happened and what was Pasted. Except that Opera totally screws it up. I gave up. You should see the server-side comments... :-O
cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP
-
Yep - that's exactly what it does. With the evolution of "security" in browsers, handling Paste events has become more and more painful, so much so that the only way I can reliably handle it is to watch every elephanting keystroke in order to work out when a Paste event has happened and what was Pasted. Except that Opera totally screws it up. I gave up. You should see the server-side comments... :-O
cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP
What hasn't Opera screwed up?
Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions. Dave Barry Read more at [BrainyQuote](http://www.brainyquote.com/quotes/topics topic_technology.html#yAfSEbrfumitrteO.99)[^]