Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 2 of 2

Thread: Close window in iexplorer7 on page of get-it

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Posts
    1

    Smile Close window in iexplorer7 on page of get-it

    hello

    I'm working with get.it 4.2.3 and sc 6.1.5
    I need to close the window iexplorer when anyone close the sesion on get.it
    I find this script (onLogout()) on the file globals.js
    I try this to close the window but it doesn't work

    function onLogout(){
    if( logoutInvokeArray.length > 0 ){
    var i;
    for( i = 0; i < logoutInvokeArray.length; ++i ){
    if( logoutInvokeArray[i] != "" )
    eval( logoutInvokeArray[i] );
    }
    }
    closeChildWindows();
    if( top.getit_main ){
    top.getit_main.location.href = top._LogoutPage;
    }
    else{
    top.location.href= top._LogoutPage;
    }
    if ( top.getit_main_head.document.getElementById('user' )){
    top.getit_main_head.document.getElementById('user' ).innerHTML = "";
    }
    window.close(); #this is added by me
    self.close(); #this is added by me
    }




    Can anyone help me?

    thanks a lot

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Location
    Poland
    Posts
    680

    Default

    Hi,

    I have no Get.It around so just a rough idea.

    1. make sure your code works, creating ordinary http page with JS which closes the window by pressing a button.

    2. make sure the onLogout() function is executing (using print)

    If you manage to do these two points - combine 1 and 2. Change the code so it will not be executed by pressing the button but in onLogout()

    regards
    Artur

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts