Sharing a Window Reference

Y

yotaxp

Alright, I'll try and word this as clearly as possible. Let's say my
application (APP) is capable of opening browser windows (WIN1 and
WIN2). Once open, the browser windows are capable of freely sending
text data to the APP. What I am trying to do is to give WIN2 a
reference to WIN1 using mere text strings. Before WIN2 opens, WIN1 has
the opportunity to send the APP information about itself (again, in the
form of text). Is there any information that WIN1 can give to WIN2 so
that WIN2 can reference WIN1? Can the window's 'name' be used? Are
there other ID variables? Is it possible for WIN1 to convert its
'window' reference into an 'int' pointing to the object? If so, can
WIN2 convert that back into a reference?

Whew. Thanks.
 
V

VK

Alright, I'll try and word this as clearly as possible. Let's say my
application (APP) is capable of opening browser windows (WIN1 and
WIN2). Once open, the browser windows are capable of freely sending
text data to the APP. What I am trying to do is to give WIN2 a
reference to WIN1 using mere text strings.

It is not possible. Unrelated running instances can be enumarated and
referenced only by system means (C++). This way your APP itself could
retrieve the references for all open wnd objects, but it wouldn't do
any good for WIN1 and WIN2: because there is not a way to send C++
*pointer to javascript program.

So this way is locked. What you can do is:
APP opens WIN1, WIN1 opens WIN2 as
var w = window.open(params);

This way WIN2 will see WIN1 as window.opener and WIN1 will see WIN2 as
w.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,157
Messages
2,570,879
Members
47,414
Latest member
djangoframe

Latest Threads

Top