Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - New window javascript problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedNew window javascript problem

 Post Reply Post Reply
Author
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Direct Link To This Post Topic: New window javascript problem
    Posted: 29 June 2005 at 12:07am

Part of my ste includes a popup window to handle most of the .asp scripting without having to reload. I use javascript to transfer values between the two windows. Because this new wndow is integral to the functionality of the site, I use a body onload to do window.open evry time the page is loaded. 

The problem is that sometimes as part of the .asp I have to include a js alert. This means that the js becomes part of that second window until it is reloaded. When i reload the first page, it calls the second window, and apparently refreshes the html, which displays the alert again. This is a major problem because it means that once an alert has displayed, it displays every time the first page is reloaded. This is annoying, and makes no sense, as the alert message is specific to a certain occurence.
 
Is there some way that I can close the window before I open it again to ensure that it loads a new instance?
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Direct Link To This Post Posted: 29 June 2005 at 8:42am
you could use

windowname.close
window.open

use a js to close the window, if not closed by using its name, and then re open it, therefore it closes any instance and opens again.

hope that helps im not the best at js
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Direct Link To This Post Posted: 03 July 2005 at 6:51pm
I've tried using windowname.close (with and without ()) but it doesn't seem to work
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Direct Link To This Post Posted: 30 July 2005 at 3:15am
Drop Javascript, if I go to your site, it won't work for me because I always navigate with JS disabled, and so millions of other people.

By the way, your popup is also most likely blocked by the browser internal blocker or by any other blocker the user has installed.
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Direct Link To This Post Posted: 31 July 2005 at 7:06pm
Its not a site for public access. Its an online asp program for a campany's internal workings. Thus, the settings conform to the program no the other way around. I would never dream of using popups in an open site... hideous things...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.