I know Window.opener.r efresh() does not work if two windows are from a
different domain.
Anyone a (javascript)-solution for this problem ?
tks
Jan/ 3 8879 ja*@wandelwerel d.be wrote: I know Window.opener.r efresh() does not work if two windows are from a different domain.
Anyone a (javascript)-solution for this problem ?
A solution so it will work?
Yes and no.
No as in: Javascript will not have access to another domain.
You cannot 'solve' this, except in broken browsers.
If you really need this, you'll have to use tricks like:
(page1 is in domain 1, page2 in domain2, page2 wants to refresh page1)
1) Make a simple page on the server of page1 (lets name it mustrefresh.php ).
This page return only 'refresh' or 'norefresh', depending on some variable
set (via Database eg)
2) Let page2 call some function (script) on its server which sets this
variable so mustrefresh.php will return 'refresh', otherwise it will return
'norefresh'.
3) Let page1 poll (eg check every second) the mustrefresh.php .
You'll have to add a unique value to every visitor to discriminate between
them so mustrefresh.php knows if it must send 'refresh' or 'norefresh'
Which is really all very cumbersome compared to pressing the refresh-button
yourself of course...
My advise would be: just don't, but it can be done. :-)
Regards,
Erwin Moller tks Jan/
Hi Erwin,
tks for your response but we have to refresh the page :
we can't change page 1 (the one who should be refresh).
this page is the inbox/outbox/view/folder of a users mailbox in Domino
WebAccess.
a user select a mail (or more than one), presses a button, a new window
appear (page 2) were the user can select some options. When the user
press "move", the selected mails will be moved from his/her mailfile to
a notes database. At that moment we have to refresh page 1, because the
mails are disappeared in his/her mailbox.
Notes Mailfiles are on server A, Notes applications are on server B
(all web enabled)
Scripts, windows, pages are all on server 2, because we can not change
the design of the mailfiles.
dnsnames are : mail.servers.ou rcompany.com for the mailfiles and
apps.servers.ou rcompany.com
please help
ictp wrote: Hi Erwin,
tks for your response but we have to refresh the page :
we can't change page 1 (the one who should be refresh). this page is the inbox/outbox/view/folder of a users mailbox in Domino WebAccess.
a user select a mail (or more than one), presses a button, a new window appear (page 2) were the user can select some options. When the user press "move", the selected mails will be moved from his/her mailfile to a notes database. At that moment we have to refresh page 1, because the mails are disappeared in his/her mailbox.
Notes Mailfiles are on server A, Notes applications are on server B (all web enabled) Scripts, windows, pages are all on server 2, because we can not change the design of the mailfiles. dnsnames are : mail.servers.ou rcompany.com for the mailfiles and apps.servers.ou rcompany.com
please help
Hi,
I would like to help you, but I cannot.
Please be aware of the fact that IF crossdomain scripting was allowed (as it
was in the good old days), you would not want to surf the web.
Imagine the possibilities.. ..
In one window you have a site open of www.westeal.com, and in another window
you have opened your online banking interface to your bank.
If www.westeal.com could interact via javascript to the window of your
bankaccount, it could also read the values you type like your username and
password.
You don't want that of course.
I do think however that it should be possible to tell your browser that you
deliberately WANT to domains to interact via javascript, but as far as I
know this is nowhere implemented.
Maybe (I do not know) IE can remove this restriction if you put both sites
in your 'trusted zone'. Not sure.
Hope this sheds some light on the issue. :-/
Good luck!
Regards,
Erwin Moller
PS: If you tested the 'trusted zone' thingy, please tell us your findings. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: J P Singh |
last post by:
Hi Guys
Wonder if someone can help me with this.
I have a form where a user clicks a button which gives them a pop up windows
to allow them to add the data. The user adds the data and click save. The
pop window closes and refreshs the parent window to allow the entered data
to be displayed.
It was all working okay until couple of days back when it stopped.
|
by: Andrew Alger |
last post by:
ok i have two forms. Customer.aspx and Parent_Searh.aspx. There is a button
on Customer.aspx that when executed runs javascript code to open up
parent_search as a popup. After the user searches for the parent and finds
the proper parent in the datagrid they then click on the accept button in the
grid. Then I populate a session variable with the parent ID. I then go back
to the main page and have it refresh using:
...
|
by: JPL Verhey |
last post by:
(i hope somebody (else) will read and have an idea! Thnx)
Hi,
With a script in a popup window, I want to check if certain content is
present in a page loaded into the frame "main" of the frameset in the
opener window.
I started with something like this (what happens when the considions are
met already works):
|
by: Darren |
last post by:
I have a page that opens a popup window and within the window, some databse
info is submitted and the window closes. It then refreshes the original
window using window.opener.location.reload(). The problem is that after the
reload, it brings you right to the top of the page. When I click 'refresh"
on the original page, it brings me back to the original viewing position.
Is there a way to duplicate this in from the popup window.
Also,...
|
by: Raj |
last post by:
Hi All,
I have a problem with trying to refresh the parent window from
child window in order to update data in the parent window.
The sequence of events are
1) I click a button in the parent window to open a child window thru
javascript
window.open
2) I have some functionality in the child window that changes the data
| |
by: Kenneth |
last post by:
Hi,
I have two forms, parentForm and childForm. parentForm has
a button(btn1) and a grid. childForm has a couple of
textboxes and a button.
The button on parentForm opens a new window of childForm:
btn1.Attributes("onclick")="javascript window.open(...."
|
by: Steve Wark |
last post by:
I have created a ASP.NET application and created two forms within the
application (Webform1.aspx & Webform2.aspx). On the first form I have
placed a textbox (TextBox1) and a button, which when clicked opens the
second form using the window.open(). On the second form I have a textbox
(TextBox1) and a button as well. When the second button is clicked it
closes the second window with window.close(). What I need to happen is a
refresh to...
|
by: Raffi |
last post by:
I'm facing a tricky (at least for me) page reload/refresh scenario and
need some help.
I'm working on a web application which is primarily used with MSIE. The
application has a main window with an i-frame in it. The i-frame
contains various dynamic links for opening data entry popups. One of
these popups has a couple of i-frames itself. These i-frames also have
links to scripts which make changes to a server side database.
I need for...
|
by: hussain123 |
last post by:
We have a main window (call it Parent). Clicking on a link in the main window will open up another IE window (Child) using the loadInFrame() method.
In the Child window, i load another IE window (which loads an applet. Call this SubChild). This is for the first time. Now if i go ahead and click on the link in the Parent window, the Child and the Subchild windows are refreshed. None of the windows are closed.
Now if i refresh the Parent...
|
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: 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...
| |
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: 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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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
| |
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...
| |