Aaron Saray said the following on 9/28/2007 12:06 AM:
On Sep 27, 12:29 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>The Natural Philosopher said the following on 9/27/2007 6:00 AM:
<snip>
>>If all else fails I may ye write it with pure javascript pop up klists
and ditch option/select altogether..
It should be a hoot to watch you try to write a "pure javascript popup
klists" (whatever a klist is) when you can't even understand why your
present code doesn't work.
<snipped signature that shouldn't have been quoted>
There is a lot here - and a lot of misunderstanding / communication
issues perhaps?
The two biggest misunderstanding/communication issues would be:
1) Your inability to reply to the right person.
2) Your inability to properly trim posts when replying (signatures in
particular).
Anyways, here are my thoughts:
OK. Along with mine.
You may want to write a script that executes body.onload to check any
of those select boxes and populate the hidden input fields with the
current index selected of each drop down (this fits into what I
_THINK_ you're trying to do...)
You are replying to me and that leaves me no choice but to assume you
are referring to me. Given that, why in the world would *I* want to
execute body.onload? Nor does it "fit into what I am trying to do".
Another thing is to know dynamically in your generating script if you
have only one option. If it is, generate all of the content ahead of
time (ie, fill your hidden inputs, make the select box possibly a
dummy - with no id/name, etc...)
The simplest solution to the problem that you are referring to (that
isn't my problem but someone else's) is to always have the first option
be "Make a selection" and then have the selections after that. Then, the
user chooses one and, guess what, the onchange fires and all the
problems miraculously go away. The funny thing about that simple
solution is that it doesn't involve body.onload, window.onload or
anything.onload, just a little thought is all. And, that solution has
been suggested more than once in this thread.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/