After enabling MT, I get a consistent error at the bottom of every page. IIRC it's a Javascript error. It indicates a line just before the end of the page, and character 5 every time.
When I View Source, I see that the following is added when MT is enabled, and is not there when MT is disabled:

<script type="text/javascript" charset="utf-8">    addEventListener('load', function() {
    	setTimeout(hideAddressBar, 0);
    }, false);
    function hideAddressBar() {
    	window.scrollTo(0, 1);
    }</script>  

Comments

VanessaM’s picture

I also get an error but only in IE.
Does anyone have a solution?

Thanks!

nickspages’s picture

I also get the exact error on IE. Really could use a fix for this.

Nick

VanessaM’s picture

Title: ! Error on page after enabling MMobile Tools » ! Error on page in Internet Explorer after enabling Mobile Tools
VanessaM’s picture

really strange but after uninstalling this module, flushing all caches, and reinstalling the module again, this error finally went away :)
but then I discovered that when I defined the mobile URL the same as the desktop URL then the error returned.
So finally I understand how to avoid this error. Hope this helps those who were as frustrated by this error as I was!

Brainwrap’s picture

THANK YOU! This was driving me crazy.

I've disabled the whole Mobile Tools suite for now (I was just experimenting with it anyway). This still doesn't explain *why* it caused this error, but at least I know how to get rid of it!

devin carlson’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.