Posts that aaronfish is monitoring

Subscribe to Posts that aaronfish is monitoring 9 post(s) found

Dec 1, 2008
Avatar Wyatt Eurich 1 post

Topic: Help! this.options.parent is null or not an object

You do receive this error when you create the window before the document is fully loaded. See the samples for the Prototype Window for an example of how to create and use an init() function.

 
Aug 24, 2007
Avatar Tibet Sprague 1 post

Topic: Help! this.options.parent is null or not an object

Here’s a simple fix:

On line 1495 just change parameters.options.parent to parameters.parent.

If you want your dialog to have a parent other than body just pass in parent : element as one of the parameters.

 
May 11, 2007
Avatar Sebastien Gr... 198 post(s)

Topic: Help! this.options.parent is null or not an object

I did exaatly what you did (copy/paste your code) and it works fine.
You have to provide an url with your sample code.

 
May 9, 2007
Avatar threejohn 4 post(s)

Topic: Help! this.options.parent is null or not an object

sorry, my own test is:

script type=”text/javascript” src=”#lib#/javascripts/prototype.js”/
script type=”text/javascript” src=”#lib#/javascripts/window.js”/
link href=”#lib#/themes/default.css” rel=”stylesheet” type=”text/css”/
link href=”#lib#/themes/mac_os_x.css” rel=”stylesheet” type=”text/css”/
script language=”javascript” type=”text/javascript” win = new Window({className: “mac_os_x”, title: “Sample”, width:200, height:150, destroyOnClose: true, recenterAuto:false}); win.getContent().update(“

Hello world !!

“); win.showCenter();
/script

 
May 9, 2007
Avatar threejohn 4 post(s)

Topic: Help! this.options.parent is null or not an object

I was having problems with my own test but in samples/Dialog.html I get “parameters.options has no properties – window.js (line 1495)” with all tests except “open confirm dialog”.

My own test simply was just:



<link href="/themes/default.css" rel="stylesheet" type="text/css" />
<link href="/themes/mac_os_x.css" rel="stylesheet" type="text/css" />

Hello world !!

“); win.showCenter();

and I get “this.options.parent has no properties – window.js (line 629)”
 
May 9, 2007
Avatar Sebastien Gr... 198 post(s)

Topic: Help! this.options.parent is null or not an object

Which sample file?

 
May 9, 2007
Avatar threejohn 4 post(s)

Topic: Help! this.options.parent is null or not an object

No one else is having this problem? I’m using v1.3 and just trying to get the simplest demo running with no luck.

 
May 7, 2007
Avatar threejohn 4 post(s)

Topic: Help! this.options.parent is null or not an object

I’m having the same problem:

“this.options.parent has no properties” window.js (line 629)

 
May 7, 2007
Avatar paritycheck 1 post

Topic: Help! this.options.parent is null or not an object

Hi guys, I just downloaded the prototype-window files. I followed teh instructions but firebug shows this error:

<-------->
this.options.parent has no properties
[Break on this error] this.options.parent.insertBefore(win, this.options.parent.firstChild);
<-------->

Its pointing to the window.js file. I’m calling the functions like this – I just copy pasted the sample code:

<-------->
win = new Window({className: “mac_os_x”, title: “Sample”, width:200, height:150, destroyOnClose: true, recenterAuto:false}); win.getContent().update(“

Hello world !!

“); win.showCenter();
<-------->

Whats wrong please do help….