473,396 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Sharing a Window Reference

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.

Jan 10 '07 #1
1 1075
VK

yot...@gmail.com wrote:
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.

Jan 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Simon Neve | last post by:
Hello, This question is related to sharing .Net projects across solutions and is reposted from the SourceSafe group. We have several different solutions and want to share common assemblies...
3
by: Pete | last post by:
Is there any possiblity of writing an Access or Visual Basic application that provides a method of sharing the window focus between Access and the Shell application? i.e....
3
by: Chris Dunaway | last post by:
How can a class be shared between a web service and a client that consumes the web service? Suppose I have a Class Libraray with the following simple class: Public Class SimpleClass Private...
2
by: Guy | last post by:
Is there a way to prevent new browsers windows from sharing session variables with the original window? Our team has an ASP.Net app that lets users analyze portfolio risk given certain portfolio...
6
by: Moshe Kravchik | last post by:
Hi all! I have 2 web services, one writtenin C++ (ATL) and another one in C#. Is there a way to define data stuctures in a single place both services could use? The structures are the same, but if...
0
by: Henrik Gøttig | last post by:
Hi group I am investingating how I can turn on proxy type sharing from the IDE. I am aware that I can do that from the sharetypes switch on the command-line to wsdl.exe If I have a ASP.NET...
1
by: Joe | last post by:
While I understand that Server Side Includes still work, I realize it's not the best practice for sharing code such as a common set of includes between screens. In ASP.NET I've already built...
1
by: Vikas | last post by:
Hi, I am facing a very typical problem. I have a wizard like application, where user enters information by moving back & forth between the pages. At the end of wizard the data is submitted...
0
by: Williams.sam | last post by:
I need to hover/attach a button to an existing application window in much the same way that you see when Webex is sharing the desktop (there is a little green sharing control added to each...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.