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

Excel VBA Can't access sheet on external workbook

excel vba function excel-vba

I have created a custom function in Excel using VBA. I'm trying to get data from a different workbook using the Workbooks.Open(path) command. Here's my code:

Call a method from the helper class on the page that is calling the helper method

c# asp.net helpers

I have 3 ASP.NET pages. Each has its own GetSearchResult method, which produces a different search result and fills a GridView. Each page calls a shared helper method from a helper class.