Hi Everyone,

I am not a professional programmer, just a weekend hacker that likes to fool around with the code while learning.

I have an auction web site with a pre-made auction package. I take pride in making minor changes to suite me and would like to be able to Map new visitors to my site against a 300px by 200px world map.

My auction package has an Html main page but calls various Perl programs to outline and define the page.

I have a file called usersonline.txt that records visitors to my site in this format: 1322136524/59.150.117.190 The number to the left is a time code and the right is the url.

A timer is set to delete an inactive entry after every 15 minutes.

What I think I need is a Javascript to continuously monitor my usersonline.txt file for any changes because my main page display for Visitors = ? is only updated upon each page refresh.

When a change is detected, I would need to somehow convert the url to longitude and latitude coodinates and then convert those coordinates to x,y pixel coodinates for placing a red blinking .gif dot on my world map.

The blinking dot would stop blinking after 15 minutes and remain red to mark the visit.

That's about it. Any ideas? I am willing to take it one step at a time.

Thanks for any help.
Hacker1


In reply to Mapping visitors to my site by Hacker1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.