Author Topic: FancyTable  (Read 6212 times)

0 Members and 1 Guest are viewing this topic.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
FancyTable
« on: August 31, 2006, 11:28:19 pm »
Can you tell when I'm working on something?  Good ol' reusable code :)

Anyways, I wrote a simple little class that displays a table with a header and alternating colours.  It's really handy, and controlled by css. 

If you can find me a better css, please do.  I suck at design. :)

See it: http://www.javaop.com/~ron/code/fancytable/index.php
Download it: http://www.javaop.com/~ron/code/fancytable.tgz

I still intend to combine this with my DB class so you can easily display rows from the database.  That'll be next time I have time, and this weekend is looking bad. 

I'd also like to combine this with my menu class.   

I have a plan with all these individual parts I'm writing! :P
« Last Edit: August 31, 2006, 11:42:12 pm by iago »

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: FancyTable
« Reply #1 on: August 31, 2006, 11:36:10 pm »
Purple?  Looks pretty good, though I probably won't use it.  I recommend putting a \n or something in there somewhere.  I don't like looking at that all on 1 line :\

Incidentally: The requested URL /~ron/code/fancytable.tgz was not found on this server.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: FancyTable
« Reply #2 on: August 31, 2006, 11:43:42 pm »
Purple?  Looks pretty good, though I probably won't use it.  I recommend putting a \n or something in there somewhere.  I don't like looking at that all on 1 line :\

Incidentally: The requested URL /~ron/code/fancytable.tgz was not found on this server.
I did that on purpose, sometimes I need to put that in JavaScript and JavaScript doesn't like linebreaks within strings.  So I made the call, and decided to put it on a single line.  I suppose I could use nl2brStrict(), but I .. shut up.  Maybe I'll do that :P

And oops, forgot to upload the .tgz file.  My bad!

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: FancyTable
« Reply #3 on: September 01, 2006, 01:10:35 am »
Do you have something against XHTML? :(

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: FancyTable
« Reply #4 on: September 01, 2006, 01:15:05 am »
I was going to say the same thing. He consistantly uses .php files, even though there's (from the looks of it) no dynamic content. =p
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: FancyTable
« Reply #5 on: September 01, 2006, 08:19:53 am »
Do you have something against XHTML? :(
No, but I also don't have anything FOR xhtml. 

I was going to say the same thing. He consistantly uses .php files, even though there's (from the looks of it) no dynamic content. =p
Hmm, do you think that that might be because...... it's a demonstration?  If you look at the code, it's all library-style code, which is the point. 

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: FancyTable
« Reply #6 on: September 01, 2006, 12:27:00 pm »
XHTML is the higher standard.  Isn't HTML going to be deprecated or something? :\

To me, it seems like it takes less energy and makes more sense to use XHTML.  You don't have to painfully capitalize tag names and attributes and you close tags in the correct order.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: FancyTable
« Reply #7 on: September 01, 2006, 01:57:18 pm »
I'm not sure if HTML4.01 is ever going to be deprecated, except for a higher

You don't ever have to capitalize tags, but I like to do it.  It's just a personal thing. :P

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: FancyTable
« Reply #8 on: September 01, 2006, 02:16:31 pm »
I'm not sure if HTML4.01 is ever going to be deprecated, except for a higher

You don't ever have to capitalize tags, but I like to do it.  It's just a personal thing. :P

What's the point of it?  To make code stand out?  I guess that would be helpful, but that's what syntax highlighting is for.

Do you close tags in the converse order that you open them and close tags such as <br> and <li>?

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: FancyTable
« Reply #9 on: September 01, 2006, 06:30:18 pm »
I do it partly to make it stand out, and partly to emphasize html tags.  There isn't really a strong reason that I do it, though, I just happen to like how it looks. Is that so bad? :P

Yes, tags that I close I think I always close in the opposite order.  But I don't close all tags, like for instance <br>.  I dislike how "<br />" looks, so I generally just use "<br>" and nothing more. 

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: FancyTable
« Reply #10 on: September 01, 2006, 06:55:21 pm »
Such a silly reason, iago! ;)

Since XHTML is a stricter standard, it would seem that implementing it into a browser would be easier and less likely to produce bugs.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: FancyTable
« Reply #11 on: September 02, 2006, 01:50:58 am »
Probably, but both end up producing the same output.  There are still problems with how browsers interpret stuff, whether in HTML or XHTML.  Actually reading the code is rather consistant. 

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: FancyTable
« Reply #12 on: September 02, 2006, 02:49:49 am »
Yeah, but that's because lazy people like you won't switch to XHTML!  Meanie! :(

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: FancyTable
« Reply #13 on: September 02, 2006, 08:55:17 am »
Ha! I'm the reason the internet sucks!  Muahahaha

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: FancyTable
« Reply #14 on: September 02, 2006, 10:15:42 am »
OMGRLY?! KILL TEH KANADEANZ!!