Logout and close window

Hi
What is the best way to have the user log out, closing the window at the same time?
Thanks
Nick

Hi
I'm mass mailing a URL to a group of users to open a testpage
http://server/XMII/CM/Test/testPage.htm?IllumLoginName=testuser&IllumPassword=password
and that works fine.
What I want to do is add a button on testPage.htm which not only logs the user out, but shuts the window as well.
Obviously I could use
http://server/XMII/Illuminator?service=logout
to log the user out, or
window.close
to close the window, but could I combine the two?
XMII version is 12.0.2 b88
Thanks
Nick

Similar Messages

  • Javascript Open and Close window

    I am creating a new website and am having problems getting
    the open window and close window to work. I want this window to
    open a new window (NOT a popup window used with the "onload"
    option). I am using an img tag so that when you click on the image
    thumbnail this new window opens. It is my understanding in order to
    use the window.close option, you must have the javascript in the
    header of the html document for the close to work. In the heading
    of the document that contains the link to open a new window I have
    the following:
    <SCRIPT language="JavaScript1.2">
    function popuponclick()
    Cellex = window.open("products/cellex.htm",
    "console","status=1,width=350,height=150");
    function closepopup()
    if(false == cellex.closed)
    cellex.close ();
    else
    alert('Window already closed!');
    </SCRIPT>
    Then I have this in the body:
    <img src="images/thumbnails/dermalogicath.jpg"
    alt="Dermalogica" width="94" height="84" border="0"
    /></a></td>
    <td><a href="products/mdskin.htm"
    onclick="window.open('products/mdskin.htm','mdskin',width=610,height=780,scrollbars=yes') ;return
    false; target="_blank">
    However, I'm getting script errors when opening the window on
    the lines in the body Unterminated error. I have tried using the
    help in Dreamweaver as well as many docs posted, but still cannot
    get this to work. Once I get the script errors resolved, the when
    the window opens, it will not close. I get the message that a
    window is trying to be closed and do I want to close the window
    which closes internet explorer entirely. I'm using IE 7.0 as well
    as foxfire and have the same issue on both. If I use the
    dreamweaver behaviors to call a javascript, it puts "onload" and if
    I change to "onclick" then the script will not work. When I use the
    behavior "open window" it still doesn't work. I'm totally lost as
    to what I'm doing wrong as I have followed about 10 papers all
    using the same instructions.
    Hopefully some one can help me, I'm getting fustrated as this
    seems to be pretty straight forward.
    Thanks, vienie

    Try this on for size:
    I have included two functions.
    windowRebuild() - opens a new window, maximizes it based on the screen size, removes all toolbars, and then closes the old window.
    myLocation(appName, pageName) - builds a url referencing an HTMLDB application, specfic to what server you are currently on. Very useful when you have an application on 3 different servers(dev, test, prod servers), you wouldn't want the server name hardcoded if you plan to export the app to another server.
    Also, you need to be careful when using &APP_ID. I am not completely certain how that is resolved at runtime, but I've found it only works when the javascript is in the HTML Header of a page and not stored in the template of the page.
    <script language="JavaScript1.1" type="text/javascript">
      This functions is for internal application use.
      Examples of myLocation:
      url = myLocation('&APP_ID.', 'APP_PUBLIC_PAGE');
      url = myLocation('MY_APP_ALIAS', 'MY_PAGE_ALIAS');
      url = myLocation('184', '10');
    function myLocation(myApp, myPage){
      var myHost = location.host;
      var newURL;
      newURL = 'http://'+myHost+'/pls/htmldb/f?p='+myApp.toString()+':'+myPage.toString();
      return newURL;
    /*  Function windowRebuild()
    *   This function will open a new window and close the old window.
    *   This function will also maximize the new window and remove all toolbars.
    function windowRebuild(){
       if(window.name != 'myAppWin'){
        var url = myLocation('&APP_ID.', 'PAGE_ALIAS');
        var myWin = window.open(url,'myAppWin','toolbar=0,scrollbars=1,menubar=0,status=1,resizable=1,location=0');
        window.opener = 'x';
        window.close();
       if(window.name == 'myAppWin'){
        window.moveTo(0,0);
        window.resizeTo(screen.availWidth,screen.availHeight);
    </script>Let me know if that works or you need some more explanation.
    Chris

  • Unix command to click button on dialog box and close windows?

    I administer an elementary school computer lab of 35 eMacs all with OS 10.4.7 and with ARD 3.0. Our network server configuration requires a mounted server on each desktop in order to administer certain software packages we use. Every morning at start-up I have to walk around and manually click "Connect" on the dialog boxes. Then, with this configuration, each time a server is mounted, it opens up a Finder Window on the host machine so I've got to walk around and close windows on all the machines. I'm sure there must be an AppleScript or Unix command that I can set up to do these two tasks but I've not found it (or learned how to write it) in a few days of searching. Any suggestions?
    Thanks,
    Dan

    OK guys,
    I just succeeded in saving the AppleScript command as an application. I put it in the Login Items just after the servers. It worked beautifully! No more open windows exposing sensitive files to the risks of elementary students (how come the mounted volumes always appear on the desktop even when the "hide" button is checked?). It would be great if the mounted volumes were not showing at least in a setting like a school computer lab.
    Now, I'm still dealing with the mounting process requiring me to manually click on "Connect" every time. The Student account doesn't even have a password just to make such things easier. Still the process displays this:
    (Oh well, I guess I can't insert a ScreenShot.)
    Here's what it says: Connect to the file server "server name."
    Connect as: Registered User
    Name: "account name"
    √Remember password in keychain
    (and then two buttons) Cancel or Connect
    That's where I'm at right now. My district Tech. Support folks say that there's no way to avoid the dialog box but John seems to do it OK. They also pointed me to an online source (www.bombich.com) that I haven't yet checked out.
    Thanks again,
    Dan

  • Change the Colors of Expand, Minimize and Close Window Buttons

    How do I change the colors of the Expand, Minimize and Close window buttons?
    Red, green, and yellow are not conducive to red-green colorblind individuals, and the gray scheme in the Graphite appearance is too dull.

    If the change in theme can do it, there must be an alternative.

  • Where did Close Tab and Close Window under the File tab go? I end up with all these open windows or exiting altogether.

    Under the File tab, I no longer see Close Tab or Close Window. Thus, I end up with a lot of open windows, because if I click File Exit, I'm logged out.

    You need to create a file userChrome.css in the chrome folder in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and paste the above posted code in the file.<br />
    You can use the ChromEdit Plus extension to make it easier to edit the file.
    You can access the profile folder via this button:
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    That code will cause all hidden menu entries to get visible all the time, so you can use the mouse to open the menus and do not need to use the keyboard.

  • Trackpad is presenting a bug to open and close windows, mission control, and to move/roll the application (App) up and down.

    Totally out of the blue, my trackpad is presenting a "bug". Every time that I try to open and close my mission control, or in the moments that I move / roll up and downs the Applications Screen, my Mac freezes for less than a second.
    It never suffered any damage (NEVER!)! I am feeling very frustrated because I have no idea about what could cause such problem.
    My MacBook Air is running OS X 10.9.5.
    Any help will be very welcome!

    Well, it all really depends on the custom program and how it was written. Does it have an ActiveX interface? If it does, than that's the easiest way to go. If you put an automation refnum on the fron panel, you can right click and it and choose Select ActiveX Class>Browse. The browser will list all of the ActiveX type libraries that are registered on your system. If you can find one that refers to your custom program, then you should be able to use it's methods and properties to control. If it does not have an ActiveX interface, then things get much more difficult.

  • Open and close window

    Due to issues getting Google maps to work from within Edge Animate using jquery-ui-map I have resorted to loading a new HTML page containing the map.
    Is there a way that I can open the new window containing the Google map leaving the Edge page behind it and then close the new map window returning back to the Edge file?
    I can open the new window with the map fine but any attempt to close the window has failed. I tried a back button but this reloads the Edge file which is not what I want to do, I also tried self.close() which worked in a browser but after compiling with phonegap it stopped working.
    Can I load the html file into a div?

    Never used it myself, but there is a hack that adds system event sounds.
    http://www.unsanity.com/haxies/xounds
    I'm sure there will probably be issues with it when Snow Leopard comes out, so you may want to wait a few weeks after its release so the developer can address any incompatibilities.
    Mac OS 9 had system sounds, but I personally think Mac OS X is better off without all the noise. About the only ones Apple kept are the general system alert sound (which is useful) and the empty Trash sound.

  • Open Window and Close Window Commands

    I used to use Go Live and I could create buttons to enable the end user to open and or close a pop up window. Is there a way to do this in iWeb? Or is it possible to make a graphic appear on a page whenever you roll over a hot spot or graphic on that same page?
    Thanks,
    Mike Kroesen
    Final Cut Pro Eidtor, Seattle
    [email protected]

    hehe, the first thing i do if i set up a Windows box is to disable all the bleeps dings and whirrs.
    Wondered why i prefered Arch linux/xfce4

  • Using Javascript to print and close window

    I found that I could open my document in a browser and using Javascript, automatically bring up a print dialog and send it to the printer. My problem is that this document opens in a browser that is being used as a kiosk touch screen with no address or navigation bar at the top (they are hidden).
    I would like to ave the pdf open in a new window, print and then close, making the original window viewable again. Is this possible?
    I have tried adding window.close() right after the print command, but it doesn't seem to work. Am I simply adding the close command incorrectly?
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.automatic;
    this.print(pp);
    window.close();

    This is what commands are allowed in Javascript for Mozilla Products. IF they haven't been touched by the user of the browser many of these are turned off by default.

  • Text edit "save" and "close" window slow

    when using textedit it always happens that the window of "save" or when you close the new file unsaved it takes some time to pop up that save window. why is that so slow? it also seems to have this effect on all my programs i use like photoshop, illustrator etc... any ideas how to speed that process up?
    kindest regards
    serhat

    This is a bit of javascript that I nicked which works well for me:
    -- 1. Add the folowing to your page header or create a new page template --
    -- (popup window template) and put it in the header section. --
    SCRIPT LANGUAGE="JavaScript">
    function loadinparent(url, closeSelf){
         self.opener.location = url;
         if(closeSelf) self.close();
    </SCRIPT>
    -- 2. Use the following to call the function. the true and false keeps the parent--
    -- window open or closed. Obviously set any values in the URL. --
    javascript:loadinparent(''<URL>'', true)
    eg. javascript:loadinparent(''f?p=&APP_ID.:40:&SESSION.::NO::P40_ID:'||ID||''', true)
    -- Inc the following comment in your header --
    -- Version 1.0
    -- Last Updated: May 18, 2000
    -- Code maintained at:
    -- http://www.moock.org/webdesign/javascript/
    -- Copy permission granted any use provided this notice is unaltered.
    -- Written by Colin Moock.
    Simon

  • Open and close window sound effects?

    hello, i was wondering if there is a way to have a sound effect play whenever a window opened or closed or i open a file. anything like that? does anybody know where to go to do that stuff? thank you.

    Never used it myself, but there is a hack that adds system event sounds.
    http://www.unsanity.com/haxies/xounds
    I'm sure there will probably be issues with it when Snow Leopard comes out, so you may want to wait a few weeks after its release so the developer can address any incompatibilities.
    Mac OS 9 had system sounds, but I personally think Mac OS X is better off without all the noise. About the only ones Apple kept are the general system alert sound (which is useful) and the empty Trash sound.

  • Help, my iPad working by him selves. It write by it selves and open  and close window uncontrolled

    I Have tried to reset and restore and set it up as new

    If you have tried those three things and the iPad still doesn't work properly I suspect you might have a hardware problem with your iPad. Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support. Be sure to backup your iPad if you can, before taking or sending it to Apple.

  • Need to make browser full screen and close window

    I need a script to make users browser display the course in full screen. Also need a button that user can click to exit the course. The captivate one is not working.
    Thanks in advance.

    Hello,
    I hope you do realize that this could lead to a (great) decrease in quality? As Captivate is all about bitmaps you only have optimal quality when the published SWF is watched in the resolution it was created in.
    You can by tweaking the HTML-file and changing width/height to 100%.
    Whereas closing: this is not only depending on Captivate but almost totally on the browser, there is a thread in the FAQ about it.
    Lilybiri

  • Trackpad playing up and windows open and close with out me doing any thing

    Hey since updating to OS X Mountain Lion 10.8.5
    my Mac has been playing up. I can't really control the mouse anymore
    it basically goes where it wants to go. Also my Mac started to open and close Windows on its one,
    switching back and forth between sides, as well as opening mission control and other things.
    It is impossible for me to use my Mac at the moment :
    Would be grateful for any tips on how to fix it !!!
    Thanx

    Try the troubleshooting help here > Portables and Magic Trackpad: Jumpy or erratic trackpad operation

  • After downloading itunes 10.7 music videos and movies cause itunes to stop working and close

    After apparently successfully downloading latest itunes 10.7, I can play music only. Music videos and movies cause itunes to stop working and close. windows 7 home premium. Help!

    Try the following user tip:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

Maybe you are looking for

  • How to exclude synchronous interfaces from component based message alerting

    Hi Pi experts, We are configuiring Alerts in PI 7.3 single stack.If we have 'n'number of interfaces, and if we configured general alerts for all.How to exclude synchronous interfaces in that.Alerting is for asynchronous interfaces only.How to do that

  • SOAP Fault Problem for WAS 6.20 System

    Hi, We are exposing some RFC enabled ABAP function modules as web services in a WAS 6.20 system. We are trying to have all consumers of our web services use the SOAP faults to handle errors. It works great when we raise exceptions from the function m

  • Automate the process of making interactive PDFs

    Hi We have quite a large number static PDF forms and would like to convert them into interactive form (with text box, radio, form fields, etc...) so our users can fill in the forms. However some of our forms are big e.g. 16 pages with repetitive fiel

  • Java Issues

    "The page "PopCap Games - Bookworm" attempted to load Java content, but Java is unavailable or not installed." I have been getting this alot when I click on something. I was trying to get my settings right for NASCAR.com and I am not sure what settin

  • Uncheck the "Close Other Forms" option under the Tools menu programmaticaly

    Hi, I have a standard Oracle form open, and I want to open my own custom form, leaving the standard form open, so users can navigate back and forth between the two. I can accomplish this, but I need to go to the Tools menu and uncheck the "Close Othe