Hi ...
I have a webpage popup (lets call it POPUP) which refreshes the opener
window (this one we call PARENT) when we close it, saying we want to
save data.
For this, we use
top.oWndOpener. refresh();
When we don't want to save the POPUP data, we just close the popup and
don't refresh the PARENT.
In the PARENT we have a "Back" link which executes a simple
history.back()
The problem is:
If we refresh parent, we need to go back 2 pages, because the refresh
method adds another page to the history. But we have no (easy) way of
knowing in the PARENT if it had been refreshed. With this, our users
are forced to click two times in the Back link.
Is there anyway of going back to the previous page, no matter how many
refreshes happened in the current one ?
Thanks!!!!!
Bruno 2 9919
Bruno said the following on 5/29/2006 6:45 AM: Hi ...
I have a webpage popup (lets call it POPUP) which refreshes the opener window (this one we call PARENT) when we close it, saying we want to save data.
My apologies for you being stuck in 1999 with the use of popups.
For this, we use
top.oWndOpener. refresh();
When we don't want to save the POPUP data, we just close the popup and don't refresh the PARENT.
In the PARENT we have a "Back" link which executes a simple
history.back() The problem is: If we refresh parent, we need to go back 2 pages, because the refresh method adds another page to the history. But we have no (easy) way of knowing in the PARENT if it had been refreshed. With this, our users are forced to click two times in the Back link.
Is there anyway of going back to the previous page, no matter how many refreshes happened in the current one ?
Yeah, don't use refresh, use either reload or replace.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Thanks Randy. Resolved.
Bruno Lopes This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Justin |
last post by:
Hi,
I have a simple frameset defined:
---------------- index.html ----------------
<FRAMESET COLS = "225,*">
<FRAME NAME = "a" SRC = "one.html">
<FRAME NAME = "b" SRC = "one.html">
</FRAMESET>
|
by: HandersonVA |
last post by:
I used <input type="button" value="Back to Correct"
onclick="window.history.back();"> to go back to the previous page is
working, but if i use the as below instead, it does not work. what did I do
wrong?
<a href="javascript:document.testform.newid.value='New';" class="btn1-text"
onclick="window.history.back();">Back to Correct<a>
|
by: Ike |
last post by:
Can someone show me how I can have:
<a href="javascript:history.back()" name="Back" value="Back"
style=width:40px;float:right;margin-left:0px class="button" >Back</a>
but since this href exists in a frame, it only pertains to this frame?
Thanks, Ike
|
by: mickey |
last post by:
To display some dynamic content, I move from page A to page B. Once
page B is loaded completely, it uses a "history.back()" to go back to
page A. When now page A is displayed, I need page A to refresh. I have
tried many different things, but nothing so far has done the trick. Any
help very much appreciated!
|
by: szabelin |
last post by:
Hello,
how do I do history back when asp:button is clicked? I
can't use <input button> - I have to use asp:button.
Thanks!
| |
by: sujith.bolar |
last post by:
Hello
I am using a <form method="post"to submit values to the processing
agent. If the processing agent returns an error, I call the
history.go(-1) or history.back() function to reload the page. The page
does reload but all the values entered disappears.
I am using Java Script and html.
Code:
---------------------
|
by: Heinrich Wolf |
last post by:
Hi all
I have a history.back() problem with FF(2). IE works as expected, while FF
does not. The multi frame website setup as a whole with a lot of frame
content switching works flawlessly in both browsers. In one situation and
frame I have a long scrollable list of cars offered for sale. Some list
lines are linked to a separate page with images, to be loaded into the
same frame as the listing.
On closing this image page with <a...
|
by: bsonline |
last post by:
I want to use history.back(-1) and refresh the page at same time ..
like with history.back(-1) event when the destination page is displayed at that it also be refreshed.
is this possible ?
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
| |
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |