'this.windowManager' is Null or not an object
|
|
Hello, I have made a simple application with window.js and GoogleMaps. It works very fine on FF2 (absolutely no error) but hangs on IE6 with this error (I have a french version of IE): Ligne 1404 It seems to happen when I create the window: window2 = new UI.Window(options); for info: var options = { theme: ‘vista’, shadowTheme: ‘drop_shadow’, draggable: true }; Any idea would be appreciated… |
|
|
You’ll get that error if you try to open a window prior to the DOM being fully loaded. Change your code to the following and it should work: Event.observe(document, ‘dom:loaded’, showWindow); |
|
|
Never mind, the solution above fixes the problem for me in Firefox but I still see issues in IE6 and IE7. I’ll leave it to the forum gurus to provide a correct answer… |
|
|
This has been fixed in trunk version |
|
|
You should use Hopefully this should be fixed in Prototype soon. |
|
|
Thank you for your input. |
|
|
I am not familiar with windows (at least for a developer use) |
|
|
thanks Seb. It works for then mentioned error but I get a new one:
element.hasAttribute is not a function |
|
|
This has been fixed in revision 536, please update… |
|
|
Thank you samuel. It seems to work fine now :-) |
|
|
Hi, I have a very similar problem (“this.windowManager is undefined”). I have read the thread but am not sure to understand how to fix it. Do I need to use “document.whenReady()” everytime I want to open a new UI.Window or UI.Dialog? I am asking because this would cause me problem since I need to have the code executed sequentially (i.e. not through a callback) because the calling method needs a reference on the window. Thank you, François |
|
|
Use document.whenReady only for initiliazing your page (when you want to create window on page load) |
|
|
Hello, I have downloaded the last prototype-ui version. It works fine on FF2 but it doesn’t work with IE6. After commented the line: What can I do to solve this ? Thanks for your future answers Joe |
|
|
Use the latest version from jithub :) The document.whenReady is used there and the tests works in ie too |
|
|
Thanks ! I will try with with github’s sources on monday |
|
|
In the last build from github, the directory dist seems to be gone. I try with the old version of window.js and the mistake is still present in IE. |
|
|
Hi, Since i updated window.js and prototype.js files with the last trunk versions i have no more – ‘this.windowManager’ is Null or not an object – error message with IE7 but i have new problems : - when i move a wired window, its content is no longer redrawn (+ an error in IE7 : “Cet objet ne gère pas cette propriété ou cette méthode”), Any idea ? P.S. I’m using only URLWindow because i need to send php files with mysql requests in my windows |
|
|
@joe_tall: you have to call ‘rake’ on a shell to create content of dist directory |