Hi Dan,
I had the same issue recently, trying to access a separate window that
had been opened from a page that didn't have access to the window var.
How I finally solved it, was to set a cookie when the pop up window was
opened, then in each window that needed access to it, I check if the the
cookie value is set to popup = 'true', and if it is, I call window.open(
path, 'toolbox' ) again -- this returns a handle to the toolbox window
(which is already open). When closing the toolbox window, I then set the
cookie to popup = 'false'.
Its not completely bulletproof, but seems to be the best way I've found
to reconnect various windows together...
Cheers,
-Chris
window.onload = function() {
var isTBOpen = readCookie( 'isToolboxOpen?' );
if ( isTBOpen == 'true' ) {
// Toolbox is open -- grab a reference to it!
openToolbox();
}
};
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