473,379 Members | 1,255 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,379 software developers and data experts.

Returning from popup screen

Help, Want someone's option. I'm calling a popup screen, say form B, to
add/edit a record. In, say form A, I call form B using javascript
window.open in server side code. I need to know when I come back to form A
so I can refresh the screen from the database if a record was added or the
data changed that I'm displaying. My question is: What is the best way to
figure out when form b finishes and return to form A so that I can run this
refresh routine? Hope this is clear?
Thank you,
Logger
Jul 21 '05 #1
6 2001
pm
One way to do this is to insert the following code (or something like it) in
the form B method that saves/updates your data.

Response.Write("<script>window.opener.location.hre f =
window.opener.location.href;</script>");
Response.Write("<script>window.close();</script>");

When your popup refreshes it will refresh the opener and then close the popup.
"Logger" wrote:
Help, Want someone's option. I'm calling a popup screen, say form B, to
add/edit a record. In, say form A, I call form B using javascript
window.open in server side code. I need to know when I come back to form A
so I can refresh the screen from the database if a record was added or the
data changed that I'm displaying. My question is: What is the best way to
figure out when form b finishes and return to form A so that I can run this
refresh routine? Hope this is clear?
Thank you,
Logger

Jul 21 '05 #2
I don't understand how in form A I know I'm back from formB. Where do I
check in form A for the return.
Logger

"pm" wrote:
One way to do this is to insert the following code (or something like it) in
the form B method that saves/updates your data.

Response.Write("<script>window.opener.location.hre f =
window.opener.location.href;</script>");
Response.Write("<script>window.close();</script>");

When your popup refreshes it will refresh the opener and then close the popup.
"Logger" wrote:
Help, Want someone's option. I'm calling a popup screen, say form B, to
add/edit a record. In, say form A, I call form B using javascript
window.open in server side code. I need to know when I come back to form A
so I can refresh the screen from the database if a record was added or the
data changed that I'm displaying. My question is: What is the best way to
figure out when form b finishes and return to form A so that I can run this
refresh routine? Hope this is clear?
Thank you,
Logger

Jul 21 '05 #3
I don't understand how in form A I know I'm back from formB. Where do I
check in form A for the return.
Logger

"pm" wrote:
One way to do this is to insert the following code (or something like it) in
the form B method that saves/updates your data.

Response.Write("<script>window.opener.location.hre f =
window.opener.location.href;</script>");
Response.Write("<script>window.close();</script>");

When your popup refreshes it will refresh the opener and then close the popup.
"Logger" wrote:
Help, Want someone's option. I'm calling a popup screen, say form B, to
add/edit a record. In, say form A, I call form B using javascript
window.open in server side code. I need to know when I come back to form A
so I can refresh the screen from the database if a record was added or the
data changed that I'm displaying. My question is: What is the best way to
figure out when form b finishes and return to form A so that I can run this
refresh routine? Hope this is clear?
Thank you,
Logger

Jul 21 '05 #4
pm
You won't have to refresh A by knowing when the popup (B) closes because
popup B makes a javascript call to refresh A
Response.Write("<script>window.opener.location.hre f =
window.opener.location.href;</script>"); // written in popup(B)
before B closes itself.

Response.Write("<script>window.close();</script>");

"Logger" wrote:
I don't understand how in form A I know I'm back from formB. Where do I
check in form A for the return.
Logger

"pm" wrote:
One way to do this is to insert the following code (or something like it) in
the form B method that saves/updates your data.

Response.Write("<script>window.opener.location.hre f =
window.opener.location.href;</script>");
Response.Write("<script>window.close();</script>");

When your popup refreshes it will refresh the opener and then close the popup.
"Logger" wrote:
Help, Want someone's option. I'm calling a popup screen, say form B, to
add/edit a record. In, say form A, I call form B using javascript
window.open in server side code. I need to know when I come back to form A
so I can refresh the screen from the database if a record was added or the
data changed that I'm displaying. My question is: What is the best way to
figure out when form b finishes and return to form A so that I can run this
refresh routine? Hope this is clear?
Thank you,
Logger

Jul 21 '05 #5
ok, what I mean by refreshing is i have to read from the db and load my grid
which I'm using to display my data in form A. Where do I do this?

"pm" wrote:
You won't have to refresh A by knowing when the popup (B) closes because
popup B makes a javascript call to refresh A
Response.Write("<script>window.opener.location.hre f =
window.opener.location.href;</script>"); // written in popup(B)


before B closes itself.

Response.Write("<script>window.close();</script>");

"Logger" wrote:
I don't understand how in form A I know I'm back from formB. Where do I
check in form A for the return.
Logger

"pm" wrote:
One way to do this is to insert the following code (or something like it) in
the form B method that saves/updates your data.

Response.Write("<script>window.opener.location.hre f =
window.opener.location.href;</script>");
Response.Write("<script>window.close();</script>");

When your popup refreshes it will refresh the opener and then close the popup.
"Logger" wrote:

> Help, Want someone's option. I'm calling a popup screen, say form B, to
> add/edit a record. In, say form A, I call form B using javascript
> window.open in server side code. I need to know when I come back to form A
> so I can refresh the screen from the database if a record was added or the
> data changed that I'm displaying. My question is: What is the best way to
> figure out when form b finishes and return to form A so that I can run this
> refresh routine? Hope this is clear?
> Thank you,
> Logger

Jul 21 '05 #6
pm
When page A refreshes (I am assuming that this page is already written)
because page B enters the command

Response.Write("<script>window.opener.location.hre f =
window.opener.location.href;</script>"); // written in popup(B)

The DB shoudl refresh the grid automatically.

"Logger" wrote:
ok, what I mean by refreshing is i have to read from the db and load my grid
which I'm using to display my data in form A. Where do I do this?

"pm" wrote:
You won't have to refresh A by knowing when the popup (B) closes because
popup B makes a javascript call to refresh A
Response.Write("<script>window.opener.location.hre f =
window.opener.location.href;</script>"); // written in popup(B)


before B closes itself.

Response.Write("<script>window.close();</script>");

"Logger" wrote:
I don't understand how in form A I know I'm back from formB. Where do I
check in form A for the return.
Logger

"pm" wrote:

> One way to do this is to insert the following code (or something like it) in
> the form B method that saves/updates your data.
>
> Response.Write("<script>window.opener.location.hre f =
> window.opener.location.href;</script>");
> Response.Write("<script>window.close();</script>");
>
> When your popup refreshes it will refresh the opener and then close the popup.
>
>
> "Logger" wrote:
>
> > Help, Want someone's option. I'm calling a popup screen, say form B, to
> > add/edit a record. In, say form A, I call form B using javascript
> > window.open in server side code. I need to know when I come back to form A
> > so I can refresh the screen from the database if a record was added or the
> > data changed that I'm displaying. My question is: What is the best way to
> > figure out when form b finishes and return to form A so that I can run this
> > refresh routine? Hope this is clear?
> > Thank you,
> > Logger

Jul 21 '05 #7

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

Similar topics

6
by: Mica Cooper | last post by:
Hi, I have a series of Select menus on a page. I am trying to allow the user to click on the Select title and have it popup a help window. This works fine with the following code except that all...
5
by: Willem van Isselmuden | last post by:
Hello, I've a problem I hava a page with different popup windows, when I hit a link the first one pops up and with the first open i would like to hit the second link in the parent page so the...
4
by: VR | last post by:
First, greetings to everyone :) I'm doing a university seminar & I've encountered a problem. I have a gallery with thumbnails linked on pictures. What I want is popup to be opened with...
23
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div...
3
by: ypress | last post by:
Hi. I have a page that contains this simple function: <script language="javascript"> function openPop(url, name, w, h) { var features = ""; features += "scrollbars=no,"; features +=...
2
by: sri | last post by:
hi All: This is the situaton.. I have a treeview with nodes in an aspx page. The node data is coming from DB. when i select a node and click add button, a pop up screen is ahown where the user...
7
by: Logger | last post by:
Help, Want someone's option. I'm calling a popup screen, say form B, to add/edit a record. In, say form A, I call form B using javascript window.open in server side code. I need to know when I...
3
by: EnjoyNews | last post by:
I have a popup problem. I have a script that generates a popup for image viewing. It has 2 function, and the first is that it automaticly generates the popup window to the size of the image,...
3
by: simora | last post by:
Hi: Need some working sample code to post hidden form data from a php page to a new popup window. 540 x 500 centered. The popup that I'm calling already is formatted and has a TITLE:web-2007.php...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.