DOCTYPE and window scrolling break mouse capture positioning in IE6/IE8

If I specify the DOCTYPE header in my html page the following bug is observed:
If you scroll the browser window down using the scroll wheel or the scroll bar and click on the map, the position is recorded with a vertical offset of the amount in which the window was scrolled. This problem happens in IE6 and IE8 (non compatibility mode) Firefox and IE7 work fine. Removing the DOCTYPE specification from the HTML document resolves the scroll button but causes other HTML compliant styling issues that I would prefer not to tackle.
The doc types that cause the error that I have experimented with:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
or
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
The bug seems to be an IE6/8 bug or abnormality
var mouseLoc = mapview.getMouseLocation();
Some reference to this problem and a low level fix is described here
http://unixpapa.com/js/mouse.html (under Finding Mouse Positions)
I did override a method in the (unfortunately obfuscated) oraclemap.js
Add the following method 'after' loading the oraclemaps.js
This resolves the problem - so far - i am unsure of any side effects it causes.
MVUtil._f175=function(x56)
x56=(x56)?x56:((window.event)?event:null);
var x57=0;
var x58=0;
if(x56.pageX)
x57=x56.pageX;
x58=x56.pageY;
else if(x56.clientX)
x57=x56.clientX+document.body.scrollLeft-document.body.clientLeft;
x58=x56.clientY+document.body.scrollTop-document.body.clientTop;
// BUG FIX - Included the scrollTop in the check below....
if(document.body.parentElement&&(document.body.parentElement.clientLeft || document.body.parentElement.scrollTop))
var x59=document.body.parentElement;
x57+=x59.scrollLeft-x59.clientLeft;
x58+=x59.scrollTop-x59.clientTop;
Edited by: user11202763 on Oct 6, 2009 3:09 PM
Edited by: user11202763 on Oct 6, 2009 3:21 PM

Add the doc type to the FIRST line of the HTML file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Add some javascript so that if you click on the map, it places a marker on the map at the point of the mouse click.
Then show the map, resize the window so you have scroll bars (make it smaller). Scroll down and click the map, you will notice that the point clicked on is the offset by the distance that the window has been scrolled down.

Similar Messages

  • Firefox scrolls pages extremely slowly, about 1 line per 5 notches, regardless of settings for autoscrolling and smooth scrolling or mouse driver settings.

    This issue is pretty consistent, though restarting my computer occasionally puts it back to normal, but before long it slows down again on its own.
    Firefox is the only program scrolling slowly, Internet Explorer, Word, Photoshop, Windows Explorer etc. are all scrolling fine.
    have used the following mice on both computers with the same slow scrolling issue:
    Microsoft intelimouse, wacom mouse and pen on Intuos 4 tablet, Logitech gaming mouse
    On the laptop, the multitouch function on the touchpad works well consistently for scrolling.
    I did resolve this problem temporarily by uninstalling Google Chrome. I have not reinstalled Chrome, however, and the problem keeps coming back.

    This issue is pretty consistent, though restarting my computer occasionally puts it back to normal, but before long it slows down again on its own.
    Firefox is the only program scrolling slowly, Internet Explorer, Word, Photoshop, Windows Explorer etc. are all scrolling fine.
    have used the following mice on both computers with the same slow scrolling issue:
    Microsoft intelimouse, wacom mouse and pen on Intuos 4 tablet, Logitech gaming mouse
    On the laptop, the multitouch function on the touchpad works well consistently for scrolling.
    I did resolve this problem temporarily by uninstalling Google Chrome. I have not reinstalled Chrome, however, and the problem keeps coming back.

  • Lion and Window Scroll Handles

    After installing Lion on my MBA and iMac I've lost the scroll up/down handle from the lower right corner of all MS Office app windows. Anyway of getting them back? I am sure it's gotta be some configuration issue. Thx.

    Try...
    System Preferences -> General tab ->
    In the middle of that tab you will see radio buttons for Show Scroll Bars to select the option you want. Personally, I like not seeing the scroll bars until after I start scrolling with the trackpad. As far as the arrows like CT mentioned, I think they are gone in Lion.

  • Drag & Drop image of currently playing song causes the Spotify window to "jump" to another position

    When I try to drag and drop the image of the currently playing song (the one that appears under the playlist list, on the left side of the screen), the entire Spotify window jumps (i.e. moves/repositions) inside the screen to a totally different position, making it impossible to drag the song to the intended playlist. It seems that the the window is moved to the current mouse cursor position (i.e. the left top position of the window becomes the mouse cursor position, with an offset). When I reposition the window again manually, and try to do the same thing, it doesn't happen. I have been able to reproduce this issue a 100% of the times: I just refocus a few other windows I have open and then try to add the currently playing song to a playlist in the afore mentioned way.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • InDesign Mac and Windows troubles

    Hi,
    We got 2 different shares on our Windows Server. One share for InDesign documents and one share for pictures. The pictures are used in the InDesign documents.
    We use InDesign CS6 for Mac and for Windows. If we create the InDesign documents on a Mac and open it on a Windows InDesign the picture links are broken. Same thing happens when we create the InDesign documents on Windows and open it on a Mac. Between 2 Macs or 2 Windows computers there isn't any problems.
    If both the InDesign document and the picture we link to is on the same server share there's no problems too.
    Shouldn't it be possible to edit the same InDesign documents on both Mac and Windows without breaking the links when they are stored on different shares?
    Thanks!
    Best regards
    Brian

    Sounds like either a problem with the path separators (Mac style vs. PC style), or possibly the network protocol used to link to the server on the Mac side.

  • How can I get mouse pressed and mouse released positions on the desktop whi

    Hello All,
    I am generating a Frame using Swing API. My requirement is I need to capture the mouse pressed and mouse released positions, whenever user drags the mouse on desktop region (i.e. outside of the Frame). I require these points to find the rectangle region user has generated starting from mouse pressed to mouse released position. I need to pass that rectangle to Robot class in order to capture that desktop region.
    Can anybody help me out how can I achieve this using java on MAC, Linux and Windows platforms?
    Thanks in advance.
    Regards,
    VPKVL

    VPKVL wrote:
    DarrylBurke wrote:
    Can't be done in Java.I don't think that there is something which can't be done using java. When searched over net, found few applications which are using java for implementing this feature but not free, asking for license fee. I checked by downloading the demo version.
    Just want to know the hint how it can be achieved so that I can move further on that lines.
    Your thoughts ?They use JNI with the OS API.

  • WIndow scrolling and refresh issues.

    I am having problems with intermittent window scrolling and refreshing. I noticed it first in Safari but I have confirmed it is happening in other applications as well. Typically I have no problems with window scrolling and refreshing. At times however, it becomes sluggish. For instance, I will be reading a web page and attempt to scroll down and the there will be a delay of approximately one or two seconds before the window updates. This occurs whether I am using the keyboard, trackpad or mouse to scroll. There is no video tearing or graphics artifacts, just a delay followed by an updated window. During this time, moving windows also results in a delay of one or two seconds. Again, there is no tearing or artifacts, the window just appears in it's new positioning seconds later. This unfortunately makes the system near unusable as I can not accurately scroll or position. The problem occurs whether or not I have a significant number of applications and the CPU and memory usage is not abnormal. Restarting solves the problem temporarily but it still returns. Oddly, activating show desktop or show all windows via Expose eliminates the problem for some time as well until it returns later. My system is up to date with 10.5.6.
    Seems like a problem with WindowServer. Has anyone seen this before or have any suggestions?

    Did you ever get an answer to your window scrolling issue. My new PowerMac seems to always have this issue now. (I just moved to the Intel platform from the G4.) Thanks for any help you can give.

  • Magic Mouse and Windows 7: Discovered but will not Connect.

    Windows 7 (W7) can "Discover" the Magic Mouse (MM) but doesn't seem to be able to connect. Here is asolution.
    1. Turn Off your MM.
    2. Restart W7
    3. Connect a "Wired" USB mouse. (My Track Pad would not Right Click.)
    4. Open "Hidden Icons". (In the Right lower corner of your dispaly, in the "Tray" is a small "Triangle" icon. Mouse over this and you will see that this is the "Show Hidden Icons" icon. Click on it.)
    5. You should now see a Bluetooth icon. This is the "Bluetooth Devices" icon. Click on it.
    6. A Pop Up Menu appears. Click on "Add a device."
    7. Turn on your MM.
    8. Your MM should appear in the "Select a device to add to this computer." window.
    9. It will probably just say "Mouse" or "Bluetooth Mouse" If you have used your MM before on your Mac, it may display your Mac's "Short User Name". This means that W7 has "Discovered" your MM.
    10. Right Click on your displayed device.
    11. Click on "Add device..."
    12. Click on "Properties"
    13. Select/Click on the "Services" tab.
    14. Tick the "Box" for "Driver for mice, keyboard, etc. (HID)"
    15. Click "OK" and exit.
    Your MM should now work! Sort of!! Left & Right Click works and Up and Down scrolling works. Right & Left scroll does not.
    Also, you will note that your MM becomes "Inactive" after a few seconds of disuse. Just give it a single Left click to get it going again. I've posted a solution to this problem in another post.

    Thanks! That fixed my issues with my Apple bluetooth mouse and keyboard in Win7.

  • Ibm x60s and Win 7 - third mouse button plus nipple will not scroll in FF4

    I have an IBM x60s notebook with Win 7. On previous versions of Firefox I believe I could scroll down a web page successfully using the laptop's centre mouse button and the red nipple mouse.
    This seemed to have stopped working in Firefox 4 (main release) which I downloaded yesterday. The IBM mouse's scrolling action is enabled and works on other programs, so I suspect a possible bug.
    Your comments are appreciated :)

    Some of you might not be satisfied by the OSX zoom behavior, but rather would like Ctrl+"mousewheel up/down" to increase/decrease content size per app. Like in Windows.
    To be clear let's differ between the two features: OSX's whole screen (OS UI aswell) zoom and increase/decrease content size.
    Solution:
    This is the solution I came up with, which allows you to use Ctrl+"mousewheel up/down" to trigger the latter feature, the content zoom.
    1) Make sure you aren't using Ctrl as a zoom key modifier in Settings -> Accessibility -> Zoom (I use Cmd instead)
    2) Download and install BetterTouchTools (BTT) it's free and updated regularly. http://www.boastr.net
    3) Open BTT Preferences, switch to advanced mode and chose "Magic Mouse"
    Q: "But I don't have a magic mouse" A: "Doesn't matter, Normal Mice pane won't recognize mouse wheel scroll, so follow this guide".
    4) Press "Add new gesture", select Magic Mouse Gesture "Scroll Down (modifier key needed)"
    5) Set Custom Keyboard Shortcut to "Cmd + +" (don't be confused here, press Cmd and the button on your keyboard with a "+" (plus) sign)
    6) Do the same with "Scroll Up (modifier key needed)", this time of course add Custom Keyboard Shortcut to "Cmd + -"
    You might have to do this per specific app to counter some unforeseen consequences using applications that already try to counter this (like MS programs, virtual machines and the like.)

  • I updated to the latest version and now I do not have the page controls at the right hand side and bottom and can only move the page up and down using the mouse scroll wheel. I also cannot see the whole page I am trying to view.

    When I open the web browser I cannot see the whole page and I cannot move the image sideways and must use the mouse scroll to move up and down.

    Try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete the contents the following folder:
    User/Library/Containers/com.apple.iPhoto
    3 - reboot, launch iPhoto and try again.
    NOTE: For Mavericks, 10.9,  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
    where you can check the Show Library Folder checkbox.

  • Remember window scroll positions

    one thing that drives me mad with bridge is that it doesn't remember the scroll position of windows.
    for example:
    * i have a browser window open in bridge, with a load of folders full of images [i always sort my pohotos into folders labelled by date taken, so this is a common occurence]
    * i scroll to the bottom of the browser window and doubleclick one of the folders to open it.
    * i do whatever i need to do with the photos inside
    * i hit the back button to return me to the browser window for the enclosing folder
    * instead of returning me to the window, scrolled to where i left it, bridge scrolls the window to the top.  so i have to scroll back down again to find the next folder of images i want to open.
    it's really annoying and something that almost no other app or OS does.  even a web browser window remembers where it was scrolled to, when you hit the back button.
    please fix this adobe!

    Hi Elangsru,
    No there is not such program that does do that for you.
    I using a 24" Mac and ALL of my Applications that I use open ad FULL SCREEN.
    How I did that? Open one by one the Applications you are using and drag the window to the size you like, that's it. Next time you open the same Application it will be open at full screen ore what ever size you set it to.
    PS. the only Application I use and is NOT opening to the size I set it ore use it the last time is PhotoShop.
    Dimaxum

  • Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page...

    Firefox did an automatic update to 6.01, and now my middle mouse button is not working in the browser. It doesn't close tabs, it doesn't open new tabs by middle clicking a link, it doesn't allow me to middle click to scroll the page..

    [BUG FIXED, see "EDIT 2" at the end of my post]
    I'm on Firefox 3.6.21, and I got this problem today after a Greasemonkey update (To version 0.9.10, apparently).
    Disabling Greasemonkey solved the problem, and re-enabling it reproduced the problem (middle-clicking links to open in new tab did not work, merely highlighted the link).
    I should also note that while Greasemonkey was enabled and the bug was affecting me, Ctrl+Click to open links in new tabs was also broken.
    I hope this helps!
    EDIT: It appears this is a known incompatibility/conflict bug between current versions of Greasemonkey and Tab Mix Plus. Read more here:
    https://github.com/greasemonkey/greasemonkey/issues/1406
    EDIT 2: GREASEMONKEY HAS NOW BEEN UPDATED with a workaround to fix the problem. Go to https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/ to install the update manually. It hasn't been reviewed by Mozilla yet, so it won't be an automatic update for another day or two. All credit to "cannonfodder" below for noticing this; please mark his post as helpful!

  • Scrolling with mouse on pages create black and white lines,

    When scrolling with mouse, periodically the whole screen turns into black and white lines. Sometimes whole page, sometimes just pictures/side ads. If you continue to scroll it does go away but then you need to scroll back to where the lines started, its hard to explain, i have taken 1 photo of the problem but will take more photos as i can, i really enjoy how Firefox runs on my computer, it has always been the best browser for my needs. I did recently buy a new desktop, but it did it then also, so i removed it and tried running explorer and Google and i just don't like them, so i am hoping we can get this fixed.

    Try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/
    If there is a problem with scrolling on web pages then try to disable smooth scrolling.
    *Tools > Options > Advanced > General: Browsing: "Use smooth scrolling"

  • Scrolling and rightclicking with magic mouse doesnt  work anymore

    Suddenly scrolling and rightclicking with magic mouse doesnt work any more. Left clicking and cursor moving works normal. I have checked the system preferences for the mouse and find nothing strange or unchecked. Any ideas?

    Also tried the universal access thing. Doesnt work.

  • My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words.

    My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words and looks them up via dictionary. I currently have a wireless mouse connected and I am still having the same problems.
    I fee like I may have a virus or my laptop is perhaps being accessed remotely. All of the sharing options are unchecked.
    HELP PLEASE
    Very worried!!

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and
         after the chime press and hold down the OPTION key until the boot manager screen appears.
         Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).

Maybe you are looking for

  • My iPod is charging but it is not recognized by my computer.

    I am a new iPod user and I am trying to put music on my iPod. When I connect it to to my computer the charging icon appears but neither my computer or iTunes recognizes it. When I go to Edit and Preferences in iTunes it says no iPod connected but I k

  • SSRS 2012 Problem understanding View State Validation steps

    Hi, ***** Note I have put my question on Bold to make it easier**** I am trying to Implement this solution on our systems and need help on how to set it up ? Pasted from  http://technet.microsoft.com/en-us/library/cc281307.aspx?lc=1033 How to Configu

  • LMS 4.2.1 restore question.

    Dears, I  need your help in verifing the restore command for LMS 4.2.1 in windows server:                   the command: C:\Program files (86)\CSCOpx\bin} perl.exe backup.pl -d C:\bkp where the bkp is the backup folder? Kindly confirm if this is corr

  • Reports Compilation Errors: REP-25200 / REP-0004 / REP-1430

    Hello, When trying to compile 1 report on my Linux RHEL server, I get the following errors: [oracle@Linux2005 Source_9i]$ $ORACLE_HOME/bin/rwconverter.sh userid=system/manager1@oracleln batch=yes source=$ORACLE_HOME/forms90/Source_9i/BTSTMENT.rdf sty

  • How to I import a folder from another FCP Project?

    I come from the Avid world where you can import a bin from one project directly into another. Is is possible to do this in FCP? I have this one folder with all my music in it which I created in the first project and I'm trying to import this music fo