I keep getting this error when trying to open an informational dialog:


this.options.parent has no properties
Line 450: this.options.parent.insertBefore(win,
this.options.parent.firstChild);

My jsp declaration:


         <script type="text/javascript"
src="/NPIWeb/skins/delta/prototype/javascripts/prototype.js"></script>
         <script type="text/javascript"
src="/NPIWeb/skins/delta/prototype/javascripts/window.js"></script>
         <link href="/NPIWeb/skins/delta/prototype/themes/default.css"
rel="stylesheet" type="text/css" />
         <link href="/NPIWeb/skins/delta/prototype/themes/alphacube.css"
rel="stylesheet" type="text/css" />

         <script type="text/javascript"
src="/NPIWeb/skins/delta/provider.js"></script>

         <script type="text/javascript">
             var timeout;
             function openInfoDialog() {
                 Dialog.info("Test of info panel, it will close <br>in 3s
...", {windowParameters: {width:250, height:100}, showProgress: true});
                 timeout = 3;
                 setTimeout(infoTimeout, 1000)
             }
             function infoTimeout() {
                 timeout--;
                 if (timeout > 0) {
                     Dialog.setInfoMessage("Test of info panel, it will
close <br>in " + timeout + "s ...")
                     setTimeout(infoTimeout, 1000)
                 } else Dialog.closeInfo()
             }
             openInfoDialog();

         </script>


And I do not get any dialog up at all.



--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to