473,625 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2026
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.locatio n.href =
window.opener.l ocation.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.locatio n.href =
window.opener.l ocation.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.locatio n.href =
window.opener.l ocation.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.locatio n.href =
window.opener.l ocation.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.locatio n.href =
window.opener.l ocation.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.locatio n.href =
window.opener.l ocation.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.locatio n.href =
window.opener.l ocation.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.locatio n.href =
window.opener.l ocation.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.locatio n.href =
window.opener.l ocation.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.locatio n.href =
> window.opener.l ocation.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
2991
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 the Select choices are lost. <A HREF="javascript:location='menu.jsp';window.open('menuhelp.jsp?menuID=5','me nuhelp',)">MenuTitle</A> I saw an example of a popup on a website that did not lose the menu choices.
5
11574
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 second links pops up a window in the first popup. The way I have it now is working but with each link the size of the popup window should be different but that doesnt happen how can I solve that problem?
4
2422
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 dimensions of linked picture after clicking on a thumbnail. I found javascript which is compatible with IE, Firefox & Opera but I can't get it to work. All I get is this http://www.justfonts.com/tini/problem.html (thumbnail dissapeared).
23
6397
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 align="center">
3
1987
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 += "menubar=no,"; features += "resizable=no,";
2
1338
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 enters childnode information. the pop up has a save button and when the user clicks save, the data gets saved in DB. Popup also has a close button, clicking which closes the screen.. My Problem: When i close the popup, how can i refresh the tree...
7
340
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 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...
3
2161
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, and the second is that it closes the popup window when you click outside of it. It is a script I have found on the internet, since I have no experience in javascript coding.
3
4702
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 so what I need to do is to write the values from the PHP page to that popup in specific places. Some of the hidden values are also like this format; <input type="hidden" name="handling" value="<?php echo $_POST;
0
8251
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
8688
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8352
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
8494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6115
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
4085
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...
1
2614
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
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1496
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.