I have a site which uses popup windows as a convenience in filling out
forms - you choose some data on the popup, click OK, and it sets data on
the parent windows form. This works fine in all major browsers and
platforms.
However, on Mac IE (OS 9 or 10, all versions), there is one situation
where this fails. If the parent window was itself launched as a popup,
and the parent window's parent was from a different domain than the
popup, then a security error is triggered because IE thinks you're
trying to access data from a page in a separate domain. As a diagram:
A B C
+------------+ +---------+ +-------+
| Other Site |---| My Site |---| Popup |
+------------+ +---------+ +-------+
^ |
+------------+
Access Form Data
In the above situation we get an error in JavaScript on page C when
accessing window.opener.a nyformdata, because although Mac IE should be
checking the domains between window B & C, somehow it is checking
against the unrelated domain in window A.
The obvious solution is not to launch my site as a popup, but alas that
may not be an option. Are there any ideas for workarounds? I've tried
alternate ways of accessing the parent window B other than
window.opener, but the only thing I could think of was something like
var b = window.open(x, 'B', opts)
to get a direct reference to window B (which may or may not solve the
problem), but whatever x is it will reset at least the form data in the
window.
--
Alex 2 1799
MS has dropped support for IE on the Mac. So, don't wait for a fix.
Robert
At Thu, 19 Feb 2004 03:35:56 GMT, Robert wrote: MS has dropped support for IE on the Mac. So, don't wait for a fix.
I know, and I wasn't :)
Personally I use Safari when I use Macs, but I'm stuck with users who
still use IE :(
--
Alex This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Shaun McKinnon |
last post by:
HI...Here's my problem...I have a popup window that loads when i want it to,
but it's not sized properly. I've set the size, but it doesn't seem to
work. I've been on 8 different websites to find out what i'm doing wrong,
and so far it seems i'm doing it the right way. Here's my code...any
suggestions would be appreciated.
<script language="javascript">
<!--
window.open("256fx/index.htm", "", "height=400, width=600");
//-->
|
by: HarveyB |
last post by:
I would like to generate non-modal popup windows from
ASP.Net code-behind. I have tried using Client Side
scripting like "function Test(){
window.open('test.htm',_blank,
'height=200,width=400,status=no,toolbar=no,
menubar=no,location=no resizable=no
scrollable=no');
but I can't seem to invoke the client side script from
within a Server Side Form. I know I can use the context
with to Response.redirect or Server.transfer to return a
|
by: Bijoy Naick |
last post by:
It seems like the BBC sports site is able to get past popup blockers..
For eg.. http://news.bbc.co.uk/sport1/hi/cricket/default.stm. Click on
the Video icon under "Watch and Listen" - right hand frame.
I have a popup blocker installed but the window still pops up.. Any
one know how this can be done?
BTW: I need this functionality for an intranet application.
Bijoy
|
by: jonathon |
last post by:
Hi all,
I have a web app with a popup window for entering data. I don't want
to access the web every time this window is opened, as most of the app
is AJAX. But I can't figure out how to open a new window and build it
with DOM rather than having to provide a src. Even a blank.html as src
takes time to fetch.
How can I create a popup and dynamically add DOM content without any
html at all?
|
by: Drew Berkemeyer |
last post by:
Hello,
We have an application that we have written using ASP.NET. On one of our
pages we open a popup window using javascript. The popup window has a save
and a cancel button. Both of them are server-side controls and do a
postback. While processing on the server we add javascript to the page load
(i.e. onload=window.opener.focus(); window.close()). However, the
window.close() command does not close the IE popup window.
This happens...
| |
by: Rob Petersen |
last post by:
I have a datagrid with an Edit/Update column. Instead of editing records "in
place" I'd like to do so in a separate popup window because there is a lot
of validation, business rules and dynamic controls.
What is the best way to launch a popup window (preferably modal) and then
refresh the parent datagrid if the user presses a "Save and Close" button in
the popup?
Are there any caveats regarding popup security or updating a parent grid...
|
by: VMI |
last post by:
I have a LinkButton_search on my Page1.aspx that opens up a popup page called
popup.aspx. I do this with LinkButton.Attributes.Add() on the Page_Load of
Page1.aspx.
How can I add server-side code to LinkButton_search_Click() so that the code
in there runs before opening the popup window? The problem is that I fill a
Session variable when I click on the button that will then be used in the
Page_Load of my Popup window. So basically this is...
|
by: =?Utf-8?B?QWxCcnVBbg==?= |
last post by:
I have a situation in which I need to check for data in either of two fields
and display an alert if neither field contains data or if both fields contain
data when the user clicks on a View button; these two fields are for Member
Number and for Social Security Number. I have written a Javascript function
to handle that situation. A new condition was thrown at me yesterday in
which I need to display a modal popup only if a Social Security...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |