E
Evertjan.
whygee wrote on 22 jul 2009 in comp.lang.javascript:
As I answered, the code aplies to all tables, not to a single one.
You thought wrongly.
Did you really try my code?
You would have seen that the selector is not useless,
try leaving it out.
using {display:;} can be replaced by {display:block;},
pleasing purists like Pointed, but since this is the default,
present day browsers would do the default anyway.
Are you being willfully nasty?
Why should I not understand what you did not state?
My serverside example just shortens your programming effort,
the html sent to the client is not different from the full
CSS.
Furthermore my response was not only for your benifit, as I would have
emailed it, but for the interested memberreaders of this NG as a whole.
"almost completely", so you have access to it!
It must be that it pays of in your not willing to learn serverside
coding, as serverside coding only simpifies the task of webside
programming and so reduces programming time and effort.
1) Evertjan wrote :
etc.
2) I complained because I don't want / can't write in advance
the CSS properties of each column of each table that will ever be used,
or else i'll have to make a gigabyte-sized .css
in order to cover any corner case and/or put artificial
size limitations to my code...
As I answered, the code aplies to all tables, not to a single one.
2") Thomas complained for something else, if I understand correctly :
it's about the syntax (hence the description of the BNF below) because
is invalid.
That's also why I thought that Evertjan's proposition
was to be avoided : if the value is not given, then the selector is
useless and can be skipped entirely,
You thought wrongly.
Did you really try my code?
You would have seen that the selector is not useless,
try leaving it out.
using {display:;} can be replaced by {display:block;},
pleasing purists like Pointed, but since this is the default,
present day browsers would do the default anyway.
so I don't have to write the
whole line. Hence my remark later about default values too,
as well as the cloning of the properties.
In my code, I just have to create one correct table with one
correct CSS, and the user interactions will clone then modify the
table and the associated properties, no need of hundred of CSS lines.
Now, the rest of the thread makes new and better sense to me,
and I agree with Garrett & Thomas. However I still don't understand
why Evertjan wrote the code in the first place.
OTOH, Evertjan
doesn't understand that I don't create the tables server-side,
which is a completely different issue
Are you being willfully nasty?
Why should I not understand what you did not state?
My serverside example just shortens your programming effort,
the html sent to the client is not different from the full
CSS.
Furthermore my response was not only for your benifit, as I would have
emailed it, but for the interested memberreaders of this NG as a whole.
(going almost completely
serverside-less is a design choice that pays well for me).
"almost completely", so you have access to it!
It must be that it pays of in your not willing to learn serverside
coding, as serverside coding only simpifies the task of webside
programming and so reduces programming time and effort.