jquery $(window).height() not implemented

When running the jquery below on document ready, I get a not implemented error on the assignment of top. If that line is removed, the assignment of left works just fine. I'm developing in an IE7 environment. Is this a browser implementation issue?

top = $(window).height();
left = $(window).width();


Oh, it has nothing to do with the jQuery code. window.top means something in JavaScript and since you do not delcare var, you are trying to override it! So you should Always scope your variables and if it needs to be global, change your variable name.

Put var before the variables.

Because top is == top window.

Credit goes to @travmckinney

Need Your Help

Can PHP make HTTP Get request to Java?

java php rest soap curl

I'm trying to make communication between PHP and Java.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.