PDA

View Full Version : WARNING: `window` is already defined. Use `lz.window` instead.


ranzhang
03-27-2007, 12:41 PM
When I try to run my 3.3.3 app in 4.0.0 DHTML, i get the following msg with no other hints. Application halt with a loading animation spining.

WARNING: `window` is already defined. Use `lz.window` instead.
WARNING: `menubar` is already defined. Use `lz.menubar` instead.
WARNING: `alert` is already defined. Use `lz.alert` instead.

I have searched my workspace and there isn't any place uses menubar directly, only two classes extends "menubar" - tried <?ignore ?> those codes, still getting the same warning.

Any ideas ?
Thanks so much
ran

max
03-28-2007, 04:15 AM
These warnings aren't due to your application - they're due to the components having names that conflict with reserved words in browser Javascript. You can safely ignore them.

The most common issue when porting to DHTML is eliminating null dereferences - flash fails silently for calls to bad/nonexistent methods, but it stops DHTML in its tracks. The best way to debug these issues is to run in Firefox with the Firebug extension. It will tell you exactly where your program stopped running, complete with a stack trace. Let me know how it goes!

Regards,
Max Carlson
OpenLaszlo.org