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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Juan Garcia

    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
  • DU

    #2
    Re: How to modify text on first window from child of second window?

    Juan Garcia wrote:
    [color=blue]
    > 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[/color]

    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:

    - Resources, help and tips for Netscape 7.x users and Composer
    - Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x


    Comment

    • Juan Garcia

      #3
      Re: How to modify text on first window from child of second window?

      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 <drunclear@hotR EMOVEmail.com> wrote in message news:<bga104$h9 5$1@news.eusc.i nter.net>...[color=blue]
      > Juan Garcia wrote:
      >[color=green]
      > > 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[/color]
      >
      > 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[/color]

      Comment

      Working...