473,397 Members | 2,033 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,397 software developers and data experts.

Communication between web pages

I am working on a web app and would like to enable it to use multiple
browser windows...

For example, a list of customers would have an Edit button.

Edit | First Name | Last Name | Address
.... | Leo | Duran | 23 street

When you click the edit button a window pops up with an Edit form. After the
user edits the entry, they close the window and the underlying one
automatically updates.

Can I make a page that is a pop up window tell the page that called to
refresh and get new information from the DB?

Thanks for the help!

Nov 17 '05 #1
5 1235
Leo,

Yes. Create a "Close" link or button in the editing page. From it, run the
following client-side javascript:

window.opener.location.reload();
window.close();

HTH,
Nicole
"Leo Duran" <le*@duran.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
I am working on a web app and would like to enable it to use multiple
browser windows...

For example, a list of customers would have an Edit button.

Edit | First Name | Last Name | Address
... | Leo | Duran | 23 street

When you click the edit button a window pops up with an Edit form. After the user edits the entry, they close the window and the underlying one
automatically updates.

Can I make a page that is a pop up window tell the page that called to
refresh and get new information from the DB?

Thanks for the help!

Nov 17 '05 #2
You can only do that from javascript. but, reload is not good way of doing
it although it may work for you. If the list page got some form variables
passed from another page, you will get a prompt saying that "trying
resubmit..." I can't remember exact message. In this case, you want to
create a javascript function in the list page to submit and call that
function from popup
"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message
news:eX**************@TK2MSFTNGP11.phx.gbl...
Leo,

Yes. Create a "Close" link or button in the editing page. From it, run the following client-side javascript:

window.opener.location.reload();
window.close();

HTH,
Nicole
"Leo Duran" <le*@duran.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
I am working on a web app and would like to enable it to use multiple
browser windows...

For example, a list of customers would have an Edit button.

Edit | First Name | Last Name | Address
... | Leo | Duran | 23 street

When you click the edit button a window pops up with an Edit form. After

the
user edits the entry, they close the window and the underlying one
automatically updates.

Can I make a page that is a pop up window tell the page that called to
refresh and get new information from the DB?

Thanks for the help!


Nov 17 '05 #3
Paul,

Sure, but it's not all that common. Most list pages of this type either
have no parameters or receive their parameters from the query string, not a
form post. Maintenance of the type of solution you propose can be a
problem, so I'd hesitate to recommend it unless it's actually necessary.

Nicole
"zPaul" <~p****@phnip.com> wrote in message
news:Oo*************@TK2MSFTNGP11.phx.gbl...
You can only do that from javascript. but, reload is not good way of doing
it although it may work for you. If the list page got some form variables
passed from another page, you will get a prompt saying that "trying
resubmit..." I can't remember exact message. In this case, you want to
create a javascript function in the list page to submit and call that
function from popup
"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message
news:eX**************@TK2MSFTNGP11.phx.gbl...
Leo,

Yes. Create a "Close" link or button in the editing page. From it, run

the
following client-side javascript:

window.opener.location.reload();
window.close();

HTH,
Nicole
"Leo Duran" <le*@duran.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
I am working on a web app and would like to enable it to use multiple
browser windows...

For example, a list of customers would have an Edit button.

Edit | First Name | Last Name | Address
... | Leo | Duran | 23 street

When you click the edit button a window pops up with an Edit form.
After the
user edits the entry, they close the window and the underlying one
automatically updates.

Can I make a page that is a pop up window tell the page that called to
refresh and get new information from the DB?

Thanks for the help!



Nov 17 '05 #4
So far so good, I'm using a HyperLink control to call the EditCustomer web
page and it opens in a new window just like planned...
HyperLink lnk = new HyperLink();
lnk.Text = "Edit";
lnk.NavigateUrl = "EditCustomer.aspx?CustomerID=" +
e.Item.Cells[1].Text;
lnk.Target = "_blank";

I've never used client side script, can you be give me an example of how the
EditCustomer page should be programmed to make use of client side script?
OR, point me to a good reference for using client side script.

Thanks again for the help!

Leo

"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message
news:eX**************@TK2MSFTNGP11.phx.gbl...
Leo,

Yes. Create a "Close" link or button in the editing page. From it, run the following client-side javascript:

window.opener.location.reload();
window.close();

HTH,
Nicole
"Leo Duran" <le*@duran.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
I am working on a web app and would like to enable it to use multiple
browser windows...

For example, a list of customers would have an Edit button.

Edit | First Name | Last Name | Address
... | Leo | Duran | 23 street

When you click the edit button a window pops up with an Edit form. After

the
user edits the entry, they close the window and the underlying one
automatically updates.

Can I make a page that is a pop up window tell the page that called to
refresh and get new information from the DB?

Thanks for the help!


Nov 17 '05 #5
SF
Put that line in there:

<a href="javascript:window.opener.location.reload();w indow.close();">Close
popup</a>
"Leo Duran" <le*@duran.com> wrote in message
news:eu*************@TK2MSFTNGP10.phx.gbl...
So far so good, I'm using a HyperLink control to call the EditCustomer web
page and it opens in a new window just like planned...
HyperLink lnk = new HyperLink();
lnk.Text = "Edit";
lnk.NavigateUrl = "EditCustomer.aspx?CustomerID=" +
e.Item.Cells[1].Text;
lnk.Target = "_blank";

I've never used client side script, can you be give me an example of how the EditCustomer page should be programmed to make use of client side script?
OR, point me to a good reference for using client side script.

Thanks again for the help!

Leo

"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message
news:eX**************@TK2MSFTNGP11.phx.gbl...
Leo,

Yes. Create a "Close" link or button in the editing page. From it, run

the
following client-side javascript:

window.opener.location.reload();
window.close();

HTH,
Nicole
"Leo Duran" <le*@duran.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
I am working on a web app and would like to enable it to use multiple
browser windows...

For example, a list of customers would have an Edit button.

Edit | First Name | Last Name | Address
... | Leo | Duran | 23 street

When you click the edit button a window pops up with an Edit form.
After the
user edits the entry, they close the window and the underlying one
automatically updates.

Can I make a page that is a pop up window tell the page that called to
refresh and get new information from the DB?

Thanks for the help!



Nov 17 '05 #6

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

Similar topics

9
by: Chris | last post by:
Is there a preferred method for having different scripts on different computers communicate with each other? For example, script A could tell script B that it is done with a certain process. ...
5
by: Andreas Thiele | last post by:
Hi, can anybody point me to some reading on how communication between the webserver and php is established? I'd like to make php available to my own webserver software. Andreas
3
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically...
0
by: Liu Guidong | last post by:
Dear friends, I have a question about the communication between C# and C++. Can anyone help me ?? I have written a C# dll fies named "TestFordll2.dll",as fllow: using System; namespace...
1
by: Liu Guidong | last post by:
Dear friends, I have a question about the communication between C# and C++. Can anyone help me ?? I have written a C# dll fies named "TestFordll2.dll",as fllow: using System; namespace...
1
by: Tomas Huoge | last post by:
How can I uses serial communication in ASP.NET web Pages? Many thanks. Tomas Huoge
10
by: Girish | last post by:
Ok, Ive been thinking about this problem for a while. I have 30 odd aspx pages (already built) on my website that I need to have some validation occur before the page should load. The validation...
2
by: Zetatec2 | last post by:
I have a site I am making. It contains one master page that has two ASP label controls and about sixteen ASP button controls on it. Then I have sixteen content or slave pages. The user clicks on...
0
by: mohitjaitly | last post by:
Hi, I need to ask how can I develop web pages in ASP.NET and use them as COMPONENTS and call them or directly use them from some other APPLICATION.I should be able to use design and functionality of...
5
by: AeonOfTime | last post by:
Let's assume a web application (in this case a browser-based game) with a custom HTTP server built on PHP, and a client also built on PHP. The client uses the server to access and change data. Even...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
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...
0
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...
0
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,...
0
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...

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.