473,748 Members | 9,596 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

close() not working in Mac IE 5.2

The window.close() method apparently does not work in Mac IE 5.2. I've used
it with no problem in the "big 3" browsers on Mac and Windows, including
Mac IE 5.0, but now in 5.2 it doesn't work. Has anyone else encountered
this? Is there a fix or workaround available? Am I just missing something?
Why is the sky blue? What's it all about, Alfie?

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 23 '05 #1
2 1288
Alan Little wrote:
The window.close() method apparently does not work in Mac IE 5.2. I've used
it with no problem in the "big 3" browsers on Mac and Windows, including
Mac IE 5.0, but now in 5.2 it doesn't work. Has anyone else encountered
this? Is there a fix or workaround available? Am I just missing something?
Why is the sky blue? What's it all about, Alfie?


How was the window you are trying to close opened? You can only close a window
that has no history and (or?) was opened by JavaScript. It's possible Microsoft
fixed a hole that allowed you to close a window you didn't open.

Are you _sure_ the code you have is working as written in other browsers?

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq

Jul 23 '05 #2
Carved in mystic runes upon the very living rock, the last words of
Grant Wagner of comp.lang.javas cript make plain:
Alan Little wrote:
The window.close() method apparently does not work in Mac IE 5.2.
I've used it with no problem in the "big 3" browsers on Mac and
Windows, including Mac IE 5.0, but now in 5.2 it doesn't work. Has
anyone else encountered this? Is there a fix or workaround available?
Am I just missing something? Why is the sky blue? What's it all
about, Alfie?
How was the window you are trying to close opened? You can only close
a window that has no history and (or?) was opened by JavaScript. It's
possible Microsoft fixed a hole that allowed you to close a window you
didn't open.


It's a popup opened by code in the main page. It has no history (though
that's never been a problem before, either)
Are you _sure_ the code you have is working as written in other
browsers?


Sure. I've tested this very application in IE, NS and Opera on Windows,
and IE and NS on OS9. In fact, I didn't even become aware of the problem
until I upgraded my Mac to OSX/IE5.2 earlier this week.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 23 '05 #3

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

Similar topics

5
2121
by: John Marshall | last post by:
Hi, Does anyone see a problem with doing: data = file("tata").read() Each time this is done, I see a new file descriptor allocated (Linux) but not released. 1) Will there ever be a point where I
5
23170
by: Richie | last post by:
I want to close excel application from C#, this is the piece of code I am trying "System.Runtime.InteropServices.Marshal.ReleaseComObject(excelApp);" GC.Collect(); It ain't working ! Any ideas please !! Also tried excelApp.Quit(); This is fine, but on viewing "Task List" the application tab shows "Excel.exe" running. And if I run the program again the message
6
1796
by: Ashish | last post by:
It might be basics for many but I never gave attention on this before. Steps: Add 2 forms (Form1/Form2) in application. Create a object in Form1 for Form2. Form2 f2 = new Form2(); //line 1 //f2.Show(); // line 2 f2.Close(); // line 3
14
2780
by: Paul | last post by:
Hi I have 2 functions in java script, one opens a second window-this works, the other is supposed to close this second window, does not seem to be working. Just wondering if anyone had any ideas. Here is the code, the functions are <script language="javascript"> function openwin(){ win_usr=window.open ("control_numinfo.aspx") } function closewin(){
35
11419
by: Eric Sabine | last post by:
In my Finally block, I was using cn.close (where cn is an ADO.NET connection object, SQLConnection to be exact) and then I came across the following in some microsoft code. If Not cn Is Nothing Then CType(cn, IDisposable).Dispose() End If I have to admit, I'm not sure what happens here. Will someone explain this line of code (the middle one, not the if statement LOL) to me please?
5
3094
by: lindanr | last post by:
In ASP.NET 2005 I have an onblur="window.close()" javascript event in the <body> tag. When I click on the window's scrollbar, the window closes. The same code works fine in ASP.NET 2003. Any ideas?
3
4156
by: rdemyan via AccessMonster.com | last post by:
Sometimes users (including myself) accidentally click on the application close icon in the application menu bar when they meant to just click on the 'X' for the form. Of course the app closes and this is very annoying. So, I added a messagebox to my hidden StartAppForm in the Unload event. Now when the application closes the user is presented with a message so they can abort closing in case they don't really want to close. This has been...
4
6098
by: bsm | last post by:
Hi, I have googled for my issue in this group. This question was asked many times and many solution was given. But I want clear cut solution for the issue. The issue is: I tried to capture the browse close event by using Body onunload=fn1() statement and it is working fine.
1
2468
by: Lars B | last post by:
Hey everyone, I've been working on a C++ program that uses several threads to read data from a large file into several buffers at speed and pass them to different classes at different rates. I'm working in linux using Eclipse as my editor and a simple makefile to compile the files. My problem is that my main reader class (FileReader:- a thread class) does not seem to recognise the close() function that, as we all know, is the complement to...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9321
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
9247
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...
0
8242
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, 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...
1
6796
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
4602
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...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
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
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.