|
Posted by Andy Dingley on 12/29/06 16:26
Highlander wrote:
> Consider the following HTA:
I'd rather not. You posted it to c.i.w.a.h where it's off-topic
because:
It's a HTA (spawn of pure evil) rather than HTML
It's a HTML, thus not suitable for "web" use, as opposed to M$'s little
play-nice-with-everyone sandpit.
It uses VBScript so it's IE-restricted
The HTML is a bit poor
The CSS is a bit poor
> The script works fine, but I'm wondering if there's any way to
> dynamically populate the pulldown lists with all the months of the
> year, days of the month, etc. - rather than have to list each one out
> like this:
HTML isn't a programming language, it's fundamentally a static text
markup language. So stick static things into it statically.
If you want to generate this programmatically (probably overkill for
days and months, but the principle isn't bad) then do it with some
server-side program that's _external_ to the HTML document itself (and
it's only a line or two of ASP, even ASP/VBScript).
Embedding executables into static documents is only sensible if you're
deliberately trying to obfuscate things, or you're drawing Hilbert
curves.
Navigation:
[Reply to this message]
|