Forums Window

UI is undefined

Subscribe to UI is undefined 4 post(s), 3 voice(s)

 
Avatar NRasch 12 post(s)

When testing Prototype-UI in IE 7 and Opera 9.24 I keep getting the following error:

Opera = message: Statement on line 1: Reference to undefined variable: UI
IE = Error: ‘UI’ is undefined

Firefox and Safari don’t seem to have this issue. I am able to create windows and shadows with no problems at all utilizing UI.

I feel like I’m missing something obvious here, but I can’t find it. Has anyone got the UI working in IE or Opera? If so, did you have to mess w/ anything to avoid the UI undefined errors?

Many thanks,
Nathan

 
Avatar NRasch 12 post(s)

I found the two following things allow for Windows to appear in IE and Opera:

Line 2983 of prototype-ui: remove the comma at the end of the line
style: this.overlayStyle,  —>  style: this.overlayStyle

This is a fix of a simple typo.


Line 2637 of prototype-ui: remove the text ‘this.buttons.appendChild(button)’
}).each(function(button) { this.buttons.appendChild(button) }, this);  —>  }).each(function(button) { }, this);

Note the change above is a messy hack that doesn’t fix the issue. It does; however, allow one to get a window to appear in IE and Opera. I’ll keep looking at the code and see if I can fix it properly. :)

Nathan

 
Avatar Seb Administrator 133 post(s)

Thanks Nathan for this little debug
I have fixed both of them.
Just update
Seb

 
Avatar aldorado 3 post(s)

hi nathan, seb,

i just downloaded window (from the startpage) and have the same problem!
can“t see windows in IE.

Is window still in production or is there a functional released version?

Regards

Forums Window