Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

(crazyinsomniac) RE: Re: Tracking user exits

by crazyinsomniac (Prior)
on Sep 06, 2000 at 22:03 UTC ( [id://31296]=note: print w/replies, xml ) Need Help??


in reply to Re: Tracking user exits
in thread Tracking user exits

Use a 'javascript' refresh.

One reason why, if a user hits cancel, the meta refresh gets canceled, while a javascript/one doesn't if you just call your function without using any events like so

<script language=javascript> <!--// var counter=1000; var urla="http://pathto/logout.cgi"; function stoperror(){ return true; } window.onerror=stoperror; function countdown() { if(counter==0) { window.location=urla; } counter--; setTimeout("countdown();",995); } countdown(); //--> </script>

"cRaZy is co01, but sometimes cRaZy is cRaZy".
                                                      - crazyinsomniac

Replies are listed 'Best First'.
RE: RE: Re: Tracking user exits
by merlyn (Sage) on Sep 06, 2000 at 22:07 UTC
    Of course, anyone who has been reading the CERT alerts for the past few years already has Javascript (and perhaps Java) disabled while surfing the Wild Wild Web, so this solution won't work.

    In fact, there are provably more people with Javascript turned off today than ever before. So we'll have to increasing provide solutions for problems that do not use Javascript. Get used to it!

    -- Randal L. Schwartz, Perl hacker

      That is very true,
      which is why you make having JavaScript enabled a requirement for logging in to your( or whoevers) website.

      "cRaZy is co01, but sometimes cRaZy is cRaZy".
                                                            - crazyinsomniac

        ...which is why there are a lot of web sites that I never use. Look at all that perlmonks does without JavaScript (including listing who is active on the site). I don't mind sites that include non-essential features that require JavaScript (or Java). But I just skip sites that require JavaScript at the start.

        Of course, most of those don't even seem to be aware that JavaScript is optional -- the sites just silently break. I find it very rare to run into a site that requires JavaScript and bothers to tell me that.

        Not long ago my banking site made a change that required JavaScript to login. They never use JavaScript anywhere else on the site, they just replaced the "login" submit button with several JavaScript buttons. I don't mind the JavaScript buttons if they leave the submit button. I rolled my own tiny HTML file to have my own login page that requires no JavaScript and reported the problem to the site.

                - tye (but my friends call me "Tye")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://31296]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-04-25 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found