SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    ny
    Posts
    560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Session time out warning...

    Hi all, I have a session time out warning message which warn the users in the 3.minute of session...but somehow it doesnt function...Any input appreciated...



    my application.cfm:



    <html>
    <head>
    <script language="JavaScript1.2">
    function startTimer()
    {


    //myTime = setTimeout('ding();',60000);
    myTime = setTimeout('ding();',180000); // at the 3.Minute
    // (60000 ms in a minute, * 14)
    }

    function ding()
    {

    nwindow1=window.open("WarningTimeOut.cfm","","height=140,width=585,left=200,top=180,scrollbars=no,toolbar=no,status=no,menubar=no,resizable=no",bReplace="true");

    //alert('dinner is served!');
    }
    function ajx()
    {

    if (typeof window.ActiveXObject !='undefined' )
    { xmlDoc =new ActiveXObject("Microsoft.XMLHTTP"); }
    else
    { xmlDoc =new XMLHttpRequest(); }
    var myRand =new Date().getTime();
    var myPage ='application.cfm?stamp='+ myRand;
    xmlDoc.open( "GET", myPage, true );

    xmlDoc.send( null );
    //alert("HI");
    window.opener.focus();
    if (window.opener.nwindow1)
    {window.opener.nwindow1.close();}
    }
    </script>
    </head>

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2009
    Location
    Wallingford, CT
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This looks like it might be more of a javascript question than a ColdFusion question.


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
  •