Ok, so what's really happening is I'm building my application using Delphi for PHP, which uses qooxdoo widgets. It's an IDE that mixes PHP, Javascript, and Qooxdoo components.
Think of visual basic and that's sort of the idea, but for PHP & JS. The code is generated for me so all I have control over is events. I have access to onload, so I thought I could just have onload change the theme when the page loads. All the qooxdoo and actual code rendering is done transparent to me. here's the code it generates: <table width="1096" style="height:1120px" border="0" cellpadding="0" cellspacing="0" ><tr><td valign="top"> <div id="MainWindow_outer" style="Z-INDEX: 0; LEFT: 126px; WIDTH: 554px; POSITION: absolute; TOP: 209px; HEIGHT: 359px"> <script type="text/javascript">var d = qx.ui.core.ClientDocument.getInstance(); var MainWindow = new qx.ui.window.Window("MEGA 4", "icon/16/apps/accessories-disk-usage.png"); MainWindow.setLocation(126, 209); MainWindow.setModal(false); MainWindow.setResizeable(true); MainWindow.setMoveable(true); MainWindow.setMoveMethod("opaque"); MainWindow.setResizeMethod("frame"); MainWindow.setShowClose(true); MainWindow.setShowMinimize(true); MainWindow.setShowMaximize(true); MainWindow.setShowIcon(true); MainWindow.setShowCaption(true); MainWindow.setShowStatusbar(true); MainWindow.setWidth(554); MainWindow.setHeight(359); </script><closing table stuff> Now I can't change this code, I only have access to JS events. HELP! :'( - Dan On 5/31/07, Alex Back <[EMAIL PROTECTED]> wrote: > Hello Dan, > > FrozenDice wrote: > > Thanks, but I'm still a little lost. How can I access a window > > outside of where it is defined? For example: I can't access the code > > that creates the widget, but I have access to a javascript event, > > let's see a button click. What is the code I would need to put into a > > function that responds to a button click? > Do you have access to any event which is chained to the window? If the window > widget isn't not accessible through a variable, maybe you can use an event of > the window widget to get access? > > > I tried MainWindow.setIcon("megaIcon.JPG"); MainWindow being of > > course the name of the window object I want to change. I figure I > > have to do something to get access to the window again, I just don't > > know what that code is. > Can you provide some code? Maybe I can help you this way. In which > way/combination do you use qooxdoo? > > cheers, > Alex > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel