News:

So the widespread use of emojis these days kinda makes forum smileys pointless, yeah?

Main Menu

FancyTable

Started by iago, August 31, 2006, 11:28:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iago

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

rabbit

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.

iago

Quote from: rabbit 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.
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!

Sidoh

Do you have something against XHTML? :(

Joe

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
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


iago

Quote from: Sidoh on September 01, 2006, 01:10:35 AM
Do you have something against XHTML? :(
No, but I also don't have anything FOR xhtml. 

Quote from: Joex86] link=topic=7229.msg89920#msg89920 date=1157087705]
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. 

Sidoh

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.

iago

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

Sidoh

Quote from: iago 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

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>?

iago

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. 

Sidoh

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.

iago

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. 

Sidoh

Yeah, but that's because lazy people like you won't switch to XHTML!  Meanie! :(

iago

Ha! I'm the reason the internet sucks!  Muahahaha

rabbit

OMGRLY?! KILL TEH KANADEANZ!!