473,748 Members | 7,608 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to modify text on first window from child of second window?

Subject says it all.

Given:
Window A with text field.
Window B with a button (onClick opens Window C)
Window C with a button (onClick I want it to modify text fields of
Window A)

I have tried storing the handle of Window A ( var winHandle = this; )
in a global variable/file ( globals.js ) and then accessing it from
Window C ( winHandle.docum ent.txt1.value = "blah";) But I am having
problems with globals. (Differnt problem and post all together. But
I tell you this globals don't behave like they do in C. And they are
pissing me off.)

Any help greatly appreciated.

jg
Jul 20 '05 #1
2 2192
DU
Juan Garcia wrote:
Subject says it all.

Given:
Window A with text field.
Window B with a button (onClick opens Window C)
Window C with a button (onClick I want it to modify text fields of
Window A)

I have tried storing the handle of Window A ( var winHandle = this; )
in a global variable/file ( globals.js ) and then accessing it from
Window C ( winHandle.docum ent.txt1.value = "blah";) But I am having
problems with globals. (Differnt problem and post all together. But
I tell you this globals don't behave like they do in C. And they are
pissing me off.)

Any help greatly appreciated.

jg


What's the relation between window A and window B? Is window B a
secondary window of window A, opened with a window.open() call? That is
important.
You need to give more details. An url would be convenient.

I think you should also consider what usability studies have proven
everywhere: the more windows there are, the more users get confused and
new windows defeat the convenience of the Back button and history object.
"Research shows that most users don't like to run more than one
application at a time. In fact, many users are confused by multiple
applications."
Windows User Experience team,
Microsoft Windows User Experience Frequently Asked Questions: Why is the
taskbar at the bottom of the screen?,
March 2001

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html

Jul 20 '05 #2
Window A and Window B are two frames on the same brower. Window A has
a treeview and Window B has command buttons. Window C is a popup that
is openned when a button on Window B is pressed. Now when user enters
input into the popup window (Window C) I want to update the contents
of the treeview (Window A.)

A tangent question is, do Window A and Window C share memory space?
In other words do they share globals. If I include globals.js in both
do they share the same variables or do they each have their one
"globals?"

jg

DU <dr*******@hotR EMOVEmail.com> wrote in message news:<bg******* ***@news.eusc.i nter.net>...
Juan Garcia wrote:
Subject says it all.

Given:
Window A with text field.
Window B with a button (onClick opens Window C)
Window C with a button (onClick I want it to modify text fields of
Window A)

I have tried storing the handle of Window A ( var winHandle = this; )
in a global variable/file ( globals.js ) and then accessing it from
Window C ( winHandle.docum ent.txt1.value = "blah";) But I am having
problems with globals. (Differnt problem and post all together. But
I tell you this globals don't behave like they do in C. And they are
pissing me off.)

Any help greatly appreciated.

jg


What's the relation between window A and window B? Is window B a
secondary window of window A, opened with a window.open() call? That is
important.
You need to give more details. An url would be convenient.

I think you should also consider what usability studies have proven
everywhere: the more windows there are, the more users get confused and
new windows defeat the convenience of the Back button and history object.
"Research shows that most users don't like to run more than one
application at a time. In fact, many users are confused by multiple
applications."
Windows User Experience team,
Microsoft Windows User Experience Frequently Asked Questions: Why is the
taskbar at the bottom of the screen?,
March 2001

DU

Jul 20 '05 #3

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

Similar topics

16
2675
by: Chris Maloof | last post by:
Hello, Does anyone know how I can read the ASCII text from a console window (from another application) in WinXP? It doesn't sound like a major operation, but although I can find the window via pywin32, I haven't been able to do anything with it. I'd really just like to get the window text into a string. By "console window", I mean the sort of thing that comes up when you run "command" (although this particular one is for the game...
27
2275
by: C Gillespie | last post by:
Dear All, Hopefully I have a simple problem. Basically, I just want to alter some text with JS. Here is some of my test code: <snip> <script type="text/javascript"> var tmp='a';
3
1920
by: Newbie | last post by:
Hi Making the switch to .net from VB6, and I noticed that the XMLNode object does not expose a text property. How do I write the text value of an element(vb6 - nod.Text = ....)? BTW I have googled may different combinations, and finding an answer to this is harder than it looks. I promise I am not being lazy Thanks
10
3967
by: fotzor | last post by:
Hi, I'm a C++-Programmer and want to subclass the Edit used to write a SQL-Query in Access. The edit is of the special Access class OKttbx. Everything works, I injected a DLL into the Access-Process and the subclassing works but I can't get the Windowtext of the control...I tried the WM_GETTEXT message but it seems that Microsoft uses another way to get the text the user typed in. Has somebody an idea how I can get this to work? mfg...
7
2861
by: MrFez | last post by:
Through some investigation it appears that selecting "Every visit to the page" for the IE caching setting "Check for new version of stored pages" causes the window.opener property of child windows to be set to null after the main page has excuted a postback. Can anyone explain this or at show that I'm wrong ? Is this a bug in IE ?
2
1633
by: Martin Mosbæk Christiansen | last post by:
Hi I have been searching this group but I haven't found anything I can use... Is it possible to remote modify an already open window form from a local HTML file? Example (simplified): 1. I have a local HTML file, where I have some kind of link. When this
9
1992
by: Steven Bethard | last post by:
I have some text and a list of Element objects and their offsets, e.g.:: ... (etree.Element('a'), 0, 21), ... (etree.Element('b'), 11, 18), ... (etree.Element('c'), 18, 18), ... ] I'd like to produce the corresponding ElementTree. So I want to write a get_tree() function that works like::
5
1482
by: kidders | last post by:
Below is a script i need to modify to work and its driving me nuts. Essentially it fades the content of an array. The original script specified the object name, I tried to modify it to allow an object to be passed instead as there are two fading areas on the page code below, to be honest I could see absolutely no reason why but im not that offay with javascript so this could be down to me. Deadlines are getting tight on this one so not...
13
1573
by: kronecker | last post by:
I am trying to delete multiple lines in a text file using the following Private Sub Read_TextFile() Dim objReader As StreamReader Dim strfull, strContents, strContentsold, strContentsnew As String objReader = New StreamReader("C:\answer.txt") 'Clear the Text Box1 TextBox1.Clear()
0
8989
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...
1
9319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8241
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
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
6073
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
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2213
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.