in reply to Re^4: What's the deal with apostrophes?
in thread What's the deal with apostrophes?

I guess I kind of assumed that javascript was pretty ubiquitous.

The most recent data I've seen claims that 93% of users have javascript available, but I'm not clear on whether that's defined as "using a javascript-capable browser" or "have javascript turned on".

Personally, I use Firefox with the NoScript plugin, which prevents javascript from running unless I've specifically whitelisted the site that the javascript-containing document came from. So I do have javascript... but I won't be running yours unless you give me a reason to.

Also keep in mind that, in general, spiders and other bots don't process any javascript in the pages they encounter. Depending on your objectives, this may be either an advantage or a disadvantage to using javascript.

I do have access to "real" server access logs provided by my host. But where's the fun in that, when I can write scripts to do things?

What about writing scripts to parse and summarize the access logs, then generate pages (maybe even graphs) for you to easily view this information? That sounds a lot more interesting to me than one that just does "open a file, increment the number, write it back out".

  • Comment on Re^5: What's the deal with apostrophes?

Replies are listed 'Best First'.
Re^6: What's the deal with apostrophes?
by tallCoolOne (Initiate) on Jun 10, 2009 at 19:27 UTC
    There are graphs and things that come with the tools that are built in, and I can take a look at that, but some of it is fairly cryptic, and doesn't say much about specific page hits. The "open file, increment, write it out" script was provided by the host, and it works fine. What I am going to work on next is a script that will check all of the "counter" files, and get the number inside each one for each page, and list that out.
    So I am getting LWP installed with my Cygwin installation, and I am learning about "wget", and other similar functions. The tips you provided about opening and closing files, and going through lists of things are a big help, and I will use those tips to help me write a cleaner, more straightforward script to check the counts of all the pages.
    The javascript I am using is dynamically setting CSS style values to show or hide sections of menus to the various pages. I have worked on it for a while, unfortunately javascript is not my strength, and so I mostly rely on the help of friends to get that going. There is a bug right now in one code module that IE cannot deal with at all, but Firefox will get around, but still flag it. So if you want to take a look at it, feel free. I'd be happy to hear any opinions you have on the site in general.
    Additionally, your help will help me improve my scripts that generate my html pages from the source text files, so you have really helped me out.
    Thank you again for everything.