Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

sorttables.pl

Reply to Post Add a New Topic
UserPost

5:56 am
April 25, 2009


aflageek

Member

posts 3

I want to sort columns in awstats. I tried to follow the explainations on this site : http://www.frequency-decoder.c…..-revisited

I replace my existing awstats.pl with the <th sortable classe, but when i want to sort columns, i cannot.

my tablesort.js is placed in the /usr/local/awstats/wwwroot/

and in awstats.pl, print "<scrip> …src"\\/../js/tablesort.js……..;

As a result, i can't see sortable possibilities………

Where is my mistake?Confused

7:48 am
April 25, 2009


Jean-Luc

Admin

posts 1125

Hi,

The last time I used this script (January 2009), it only worked for us with Internet Explorer. This is not sure though, as it was a modified version because of the special requirements of a client.

I cannot comment about what you added in awstats.pl , as there are several typing mistakes in your message.Surprised 

The path you specify must be valid for the browser. So, if the Linux path to tablesort.js  is …/wwwroot/js/tablsort.js , you should have something like this in awstats.pl :

print '<script type="text/javascript" src="/js/tablesort.js"></script>' . "\\n" ;

4:40 pm
April 25, 2009


aflageek

Member

posts 3

Thanks Jean-Luc,

In fact, i applied this :

http://www.antezeta.com/awstats.html, section 3.3 on sorting columns.

So, I download the script tablesort.js and applied the patch's modifications, not the patch, cause I have awstats6.9.Wink

You told that it's only work with internet explorer. Did you try with firefox or Safari? Is it a java's plugin problem?

Another question : how do you sort usually awstat's results if you're not using this script? Smile

2:46 am
April 26, 2009


Jean-Luc

Admin

posts 1125

The sort JavaScript as used in the project of January did not work in Firefox and in Opera (not tested with Safari), but it worked in Internet Explorer and this was good enough for the customer, so we did not investigate further.

When we have to sort AWStats results, we usually use our aws2xls, AWStats to .xls converter. Once the AWStats file is converted to an Excel (Microsoft) or Calc (OpenOffice) file, it is easy to sort it in any way you like. A key difference between our script and the JavaScript from Frequency Decoder is that they can only sort the lines on the screen while our aws2xls sorts all the lines in any section of the AWStats database.

11:37 am
April 26, 2009


aflageek

Member

posts 3

Hi,

Aws2xls seems to be very interesting, but is your programm exist on linux platforms?

1:42 pm
April 26, 2009


Jean-Luc

Admin

posts 1125

There is no plan for a Linux version at this time.

Reply to Post

Reply to Topic:
sorttables.pl

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
11 + 6
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
17 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)