First off: ExpertsExchange ExpertsExploiter can go DIAF. /rant
Secondly: refactor your code using an alias for getElementById, like so:
function $(id){ return document.getElementById(id); }
This is an idiom embraced by JQuery and Prototype.js. I promise it will make your code vastly more readable and easier to compose and debug.
Third: I vagely recall coming across something like this when writing an accordion control. Try setting the "height" style property of the element on show.
Fourth: Just use jQuery or another JS framework. By this point, people have already solved these problems for all major browsers and then some. Why not use a normalization layer so you can ignore as many porting problems as possible? ;)
Thanks.. I still can't figure out how to use this. I am not allowed to use jQuery or any other JS framework because downloads are verboten here w/o a nicely-layered series of approvals.
And to get an approval for a framework to build a structure around one HTML page that is being used as a screenshot POC for a proposed project plan? Please..
Comments 2
Secondly: refactor your code using an alias for getElementById, like so:
function $(id){
return document.getElementById(id);
}
This is an idiom embraced by JQuery and Prototype.js. I promise it will make your code vastly more readable and easier to compose and debug.
Third: I vagely recall coming across something like this when writing an accordion control. Try setting the "height" style property of the element on show.
Fourth: Just use jQuery or another JS framework. By this point, people have already solved these problems for all major browsers and then some. Why not use a normalization layer so you can ignore as many porting problems as possible? ;)
Good luck!
Reply
And to get an approval for a framework to build a structure around one HTML page that is being used as a screenshot POC for a proposed project plan? Please..
Meanwhile, If you can translate this you are the smartest man in DC, because Lew and his friends lost me a million years ago..
"programming to the interface" = the HUH?
Reply
Leave a comment