HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 5th, 1999, 10:44 AM
fourtrackmind
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
here's the rub:

web-based application (jsp-based with client-side javascript), each page is dynamically compiled at run-time (multi-lingual and region-specific support), user has ability to open multiple windows at any time, impractical to assign unique names everytime a new window is opened (3,000+ pages), if user logs off app I need to be able to close all other open windows that have been spawned from within the app at the time of logout. Theoretically, I should be able to identify most windows through their parent opener, however the user could also open new windows by right-clicking or even opening another browser...

I'm running into dead-ends establishing a common script architecture where the source window will send information that target windows can parse in order to determine what action, if any, the targets should take. Here's what I'm thinking along the lines of:

<script id="scriptCoordinator" language="javascript">
targetid = "4123412";

function sendMsg(msg, hint) {
// called when this is a target of the coordination
}

function fireMsg(msg) {
// called when this is the source of the coordination
}
</script>

so my question (finally) is this:

Does anyone know of any examples of a similiar solution achieved through javascript? Assigning a scriptlet to each page that calls it to close itself if a certain criteria is met seems to be what I need, but I haven't had that epiphany yet and figured out a working solution. Is this going to be possible, or is it just a mgmt pipe dream?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > script to close open windows within an app?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap