JavaScript Forum JS Made Easy: Free JavaScripts Tutorials Example Code
About This Product
FontsMadeEasy.com
 
The Business Internet
Find it on This page:
 
| Over 5000 Free Fonts | Tutorials | Javascript Forum | Other Javascript Resources | Cheat Sheet

     
Jsmadeeasy Forums Home   Search   Login   Register   Member List  
JS Made Easy  > JavaScript programming  > updating another windows field values  
 
Display using:  
Previous Thread :: Next Thread 
 Author Thread: updating another windows field values
ggallen is not online. Last active: 7/28/2004 3:52:08 PM ggallen
Top 25 Poster
Joined: 28 Jul 2004
Total Posts: 4
 
updating another windows field values
Posted: 19 Apr 2002 12:43 PM
I have Document A which opens up a new window Document B
Document A then submits itself to the server
When the server sends a New Document A, I want Javascript
in that document to update Document B in the window that
was created by the OLD Document A.

Problem is I don't know how to get the New Document A to
write to the other window Document B field, since the
New Document A didn't open it, and it doesn't seem to
retain the varible values set in the old Document A.

Question: Is there a way to define a value in javascript in
one window, that can be utilized in a future window that is
opened by a third window (that is the window that needs to
get updated, isn't the opener of the third window).

Now I'm confusing myself.

Basically, I want to open a "status" window before I submit
my document, and when the server replies back from the submit
have javascript in that reply either directly close the
status window, or update a field in the status window that
can be detected and close itself.

Thanks
George

Admin is not online. Last active: 12/1/2005 12:27:12 PM Admin
Top 25 Poster
Forum Moderator
Joined: 28 Jul 2004
Total Posts: 15
 
Re:
Posted: 23 Apr 2002 04:38 PM
Gregory

You are better off using ASP session variables for this kind of stuff.

check out session variables or cookies may also work for you.

Steve

ggallen is not online. Last active: 7/28/2004 3:52:08 PM ggallen
Top 25 Poster
Joined: 28 Jul 2004
Total Posts: 4
 
Re:
Posted: 24 May 2002 12:36 PM
I never did post my solution.

What I wound up having to do was
on the new page, I had to reopen
the child window created by the
older page, then close it.

The problem was the new page, which
was returned by submitting the older
page wasn't the opener of the child
window, so it couldn't close it, or
reference it for that matter.

Once I re-opened it. closing the status
window was easy.

I used:

OnLoad="var childcode=window.open('','status1','') ; childcode.window.close()"

In the body of the new page.

George

Previous Thread :: Next Thread 
Page 1 of 1
 
Jsmadeeasy.com  > JS Made Easy  > JavaScript programming  > updating another windows field values