Is there a bit of chain yanking going on??
huh? , what's chain yanking.
anyway, I think your right Kevin, though I have re-written my scipts, er i think i'm on version 5.
It has taken time to edit all my scripts just to apply a new design and layout.
i have a major rewrite on a members side of things i haven't started yet, i was concidering adoptind beter practices and getting it "Right" this time (for a change).
I've been banging my head in many of tek-tips forums (and annoying the odd person - what's new!), trying to grasp the overall concept of what language/method I should use for what. I think i've got the concept down now, please correct me if i'm wrong.
PERL (my chosen language) is for processing & content.
HTML/XHTML is for structure.
CSS is for layout/formating.
although you can mix the three, i.e have PERL output the HTML (hard coded) or even use the style attribute for inline formating within HTML tags, both are concidered bad practices.
you should keep the three separate, thus i should use PERL to process and create the dynamic content, then use HTML to structure what is to be outputed (this is done vis CGI or Template) and use a CSS style sheet for layout and formating.
i'm still a bit confused as to why the TABLE tag is such a bad word, but have found CSS does not bode well if your HTML is structured via a bunch of nested tables, it's also hard to break old habits when at the time of learning HTML, tables were the only easy method of geting things layed out and centered correctly.
again i'm still unsure why if Frames / iFrames are so bad the tag exists in the first place, but we won't go there today.
I do take on board what the HTML/CSS forum has pointed out, that until I get my HTML "Valid", it will be hard to truely incorporate the power of some features available via CSS or other methods (i.e. Javascript)
This is no different than when I came to you guys for the first time with my PERL and didn't know what 'use srtict', meant or did, let alone use it

, but thans to the extremly nice bods here in the PERL forum, who showed patience, understanding, and a real willing to help me improve, have taught me so much, I now have PERL code, that although, is not perfect, (mainly due to a zillion backslashes and hardcoded HTML), at least it is valid and decently written PERL.
(i wish the other forums were as tolerant and understanding as this one, I guess different languages suit different people, and the PERL bods, seem to be a nice bunch, though don't get me wrong, there are some extremley helpfull, pleasant and talented bods in the other forums also)
the problem I have is because my skills have been self taught using a fusion of all the languages/methods, I don't fully understand each of them in their own right, as the saying say "Jack of all trades, master of none!".
which can be very handy in getting things done, quickly, and to a time scale, but that often doesn't mean properly!
and yes that can lead to not being the quickest way in the end anyway, if you're forever chasing down bugs, which you can't find because the way everything has been thrown together.
I'm proud of what i've achieved so far and for some of my sites i've even adopted the ajax method but like most things i do, it's "bolted on", so most definately is not the correct or best usage of this great tool.
i know it will be painfull and I have a long task ahead, but i feel i need to rip my site apart, and re-build from the ground up.
I think the starting point is from my PERL point of view, get my scripts back to being "Just PERL",no hardcoded javascript and HTML all over the shop, if I pull this out of my PERL then I need someway to "Merge" the dynamic content to my (what tecnically is now) static HTML, I guess the only way to do this is via some type of template system.
that way I will also be able to ensure my HTML/XHTML is correctly structured along with my CSS and be in a position to validate it. (unless the HTML layout is such for a template that the #DATA# identifiers in the HTML won't validate through w3c).
how would you go about this, where should i go to understand this template module, and please don't send me to somewhere like CPAN, it's not wittern in english to me!
I need to understand how I create an external template, PERL as the backend, how to layout current pages, in correct HTML, without 100's of nested tables, the ability to dynamically add what Javascript file should be used in the head, css file to be used etc.
Or am i trying to make my code too perfect, when all that matters is "does it work", "Does it do the job" , "does it really need changing".
applying a new layout or "Skin" is the main reason I have, it's a nighmare having to edit loads of hardcoded html in the PERL scripts everytime I change my layout or colour scheme.
anyway I think i've rambled enough, as always I look forward to any replies.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.