473,782 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1088
VK

yot...@gmail.co m 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(par ams);

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
1951
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 across them. Is it best to share the project and its files to each solution (each solution has it's own shared project), or have each solution point to the same file location of the project?
3
2554
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. Shell("c:\windows\calculator.exe", vbNormalNoFocus) In other words are there Win2000/XP api's that would allow you to control the functionality of the calculator. I'm just using the calculator application as an example I am actually trying to control a main frame app...
3
1370
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 _AnInteger As Integer Public Property AnInteger As Integer Get
2
2235
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 constructions. The set weights to certain asset types, hit calculate and see some results. Our problem is that users want to compare different situations side by side. So they either hit CTRL+N or Choose "File, New" launch a new browser window,...
6
3242
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 I add a web reference from the C# project to the ATL project, all the structures belong to the different namespace and I have to manually copy them over and repeat the full namespace. Looking for an adivice, Moshe.
0
1160
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 webapp acting as a client to my webservices I can do it, by adding the special folder "App_WebReferences" and add my wsdl's to that folder. Each time I do an "Add web reference" in in the IDE it knows which services share types and adds them to the...
1
1511
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 several User Controls and such for sharing code between screens, but this typically was used things such as menus and headers and footers. What is the best practice in 1.1 for sharing code such as a common set of functions used by multiple screens?
1
1925
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 into database. I store the information entered by user on pages, in a session object and finally destroys this session object at the end of wizard after inserting data in database.
0
1170
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 application window). I only need to add a control like that to one specific window. The control will essentially launch a second application.
0
9641
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.