Home > Not Working > E.pagex Not Working In Firefox

E.pagex Not Working In Firefox


Reply With Quote 07-07-2006,11:12 AM #3 tamjeed.ahamed View Profile View Forum Posts New to the CF scene Join Date Jul 2006 Posts 3 Thanks 0 Thanked 0 Times in 0 Posts var mouseX = e.clientX; var mouseY = e.clientY; /L -- Lasse Reichstein Nielsen - lr*@hotpop.com DHTML Death Colors: 'Faith without judgement merely degrades the spirit divine.' May 10 '06 #7 You may have to register before you can post: click the register link above to proceed. Add a translation Edit Advanced Advanced History Print this article MDN Web technology For developers Web APIs MouseEvent MouseEvent.pageX Your Search Results teoli cvrebert jpmedley MouseEvent.pageX In This Article SyntaxExamplesSpecificationsBrowser compatibilitySee Source

That brings me back to IE- it's like Rain Man, it has these odd talents with no explanation. Advanced Search Forum Client-Side Development JavaScript i can't use "event.clientX" in firefox If this is your first visit, be sure to check out the FAQ by clicking the link above. e.pageY : 0; document.getElementById('coord').innerHTML='x = '+x+' y = '+y; }

http://www.quirksmode.org/viewport/compatibility.html -- Stephane Moriaux et son [moins] vieux Mac May 8 '06 #3 P: n/a MikeFoster 2009-06-07 01:08:30 UTC #5 http://quirksmode.org/dom/w3c_cssom.html#mousepos system 2009-06-07 03:14:44 UTC #6 Wow, that sucks.

Event.pagex Javascript

window.event good for IE but not Netscape/Firefox P: n/a RC I am try to detect the mouse pointer by var event = window.event; var x = event.pageX; var y = event.pageY; Register. true : false ; Detects true for Netscape 4 or OmniWeb (and isn't used here) var ie4 = (document.all) ? Basically I am calling the function below everytime the mouse is clicked, and it works fine in Chrome, but in Firefox the alert("This is not called") never gets called.

e.clientY : event.clientY; -- Randy comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ May 8 '06 #4 P: n/a Olimpia Randy, I agree to you May 8 The nice thing about .pageX/Y is that serves as an easy way to get the mouse position, regardless of how much (or even if) the browser window is scrolled. jasonkarldavis.com Reply With Quote 07-10-2006,06:57 AM #5 tamjeed.ahamed View Profile View Forum Posts New to the CF scene Join Date Jul 2006 Posts 3 Thanks 0 Thanked 0 Times in 0 Jquery Offsetx Why is translateY(-50%) needed to center an element which is at top: 50%?

current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Clientx Vs Pagex How do I handle this? How? ex)

Reply With Quote Quick Navigation JavaScript Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Client-Side Development HTML XML CSS Graphics

Post your question and get tips & solutions from a community of 418,812 IT Pros & Developers. Mouseevent Offsetx Name E-Mail (will not be published) Website Please note: Constructive criticism is welcome. The document is always at 0,0- it is the context that all the other x and y's are calculated from. Is this your first visit?

Clientx Vs Pagex

Here's an example of capture the mouse position: Code: Untitled Document