1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

window.location.reload() problem

Discussion in 'Scripts' started by mayuroak, Apr 3, 2007.

  1. #1
    We are using javascript for passing time at sign in and sign out into the database and retriving that time from database and again refreshing the same window form where the sign in and sign out is clicked. For that we are using window.location.reload() but on some computers its working fine and on some its not showing the updated time for sign in and sign out. On some computers its showing updated time for sign in but not for sign out. So please tell me how to solve this problem. On all the computers enable javascript for browser check box is checked. Also this reload event is very basic event which should work all over the world same. I dont understand why this is not working so please guide me for the same. I tried with meta tag refresh but the behaviour is same.
     
    mayuroak, Apr 3, 2007 IP
  2. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #2
    does your script incorporate php?
     
    bobby9101, Apr 3, 2007 IP
  3. mayuroak

    mayuroak Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    we are using below mentioned script:

    $htm.='<script language="javascript">
    function Ftime(test,stat,emp,grp)
    {
    t = test;
    //alert(t);
    s=stat;
    //alert(s)
    empl=emp;
    //alert(empl);
    grpid=grp;
    //alert(grpid);
    this.location.href = "http://192.168.0.37/passwordtool/jobboards.php?ftime="+t+"&status="+s+"&empid="+empl+"&gr="+grpid;
    this.location.href="http://192.168.0.37/passwordtool/jobboards.php";

    }

    </script>';
    echo $htm;

    Here the line mentioned below is used to refresh page but its not working on all computers
    this.location.href="http://192.168.0.37/passwordtool/jobboards.php";

    I tried with window.location.reload(); but its not working for all computers.
    tried with window.location="http://192.168.0.37/passwordtool/jobboards.php"; but its not working for all computers.
     
    mayuroak, Apr 3, 2007 IP
  4. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do those computers have Javascript disabled? :\
     
    decepti0n, Apr 7, 2007 IP