Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

White page when page is loading - min.js #2638

Closed
vikrama opened this Issue · 13 comments

9 participants

@vikrama

Firebug showed this error :
Uncaught TypeError: Property 'scrollTo' of object [object DOMWindow] is not a function

Happened only in jquery.mobile-1.0rc1.min.js Line 170.

Works fine when the uncompressed filed is used.

@MauriceG

From where do you load the js file? From a local service or your own provider?

@vikrama

Local copy. Testing in Chrome. I got the same error with uncompressed copy now. Line 6748 - window.scrollTo(0,1);

But I have always used "scrollTo" for my mobile webapps (even without jqmobile) and they have never given this error while testing in desktop browsers.

@staabm

you have to serve the file using a webserver... using file:// will probably not work.

@vikrama

By local copy, I mean a copy for that website! It's not a file:// link. It's on a proper apache server.

@addyosmani

Tested with http://code.jquery.com/mobile/1.0rc1/jquery.mobile-1.0rc1.min.js http://jsfiddle.net/ALUyb/ There don't appear to be any direct issues with this on page load. The scrollTo issue you're describing is however something I've come across when using the jQuery scrollTo plugin, so perhaps there's something else being loaded on the page that's causing this.

Any chance you could send through a code sample of what you're doing on jsFiddle, @vikrama?

@jblas

@vikrama

A sample that demonstrates the problem, as @addyosmani requested, would be helpful. When are you seeing this? When you first load your document? When you navigate to a page, if so internal or external? Is the error being thrown from a point in your application code? Or a point in the jQuery Mobile source? Do you see the same problem using the demo?

http://jquerymobile.com/demos/1.0rc1/

I wasn't able to repro it with the demo, so we need a bit more details here.

@toddparker

Moving status to unconfirmed, will close if we dont' hear back with details on how to reproduce.

@eddiemonge

@vikrama Is there an update on this or can it be closed?

@luxigo

The same problem is occurs here and now with my webapp.. let's try the jquerymobile website demo:

When opening http://jquerymobile.com/demos/1.0.1/ with Chrome 17.0.963.56 running on OSX 10.6.8, I end on a blank page with: "Uncaught TypeError: Property 'scrollTo' of object [object DOMWindow] is not a function" in the console... (line 7059 of jquery.mobile-1.01.js not minified)

In this version of Chrome, typeof window.scrollTo is "object" and value is null ...

adding if (typeof(window.scrollTo)!="function" && typeof(window.scroll)=="function")) window.scrollTo=window.scroll seems to solve the issue..

@eddiemonge

@luxigo Im unable to reproduce that. Can you look at the network tab in the console and see if all the resources are loaded?

@scottjehl

I'm unable to reproduce this too, given the same browser conditions, and we haven't heard anyone else mention a blank screen in Chrome. Can you try with the following file? http://code.jquery.com/mobile/latest/jquery.mobile.min.js

Are you running any other frameworks or userscripts even that might be clobbering window.scrollTo? It logs out as a function just fine in Chrome for me...

I'm going to close this out as we can't reproduce given the same conditions, but please advise if you find anything.

@scottjehl scottjehl closed this
@luxigo

Sorry for wasting your time guys, this was caused by the "Better Pop Up Blocker" chrome extension.

@toddparker

Thanks for following up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.