[thelist] getting position of non-positioned elements

jeff jeff at members.evolt.org
Thu Dec 14 21:11:50 CST 2000


karen,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Karen Bowen
:
: However the data cannot find the select box
: if I've swapped it with something else using
: this method.  As I understand it, the select box,
: while swapped out, for all intents and purposes
: doesn't exist.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

this is correct.  as soon as you alter the innerHTML of the tag containing
the element, that element is removed from the page.  so, to make sure you
can still access just do some object detection.

if(document.forms[0].some_select)
{
  do your select list stuff here
}
else
{
  do your text box stuff here
}

good luck,

.jeff

name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:jeff at members.evolt.org





More information about the thelist mailing list