does anyone know how i could go about writing something like this out:
-------------------------
<span id="_ctl32_Combo3_StatusDisplaySpan"
onblur="ComboBlur('_ctl32:Combo3');"
onfocus="ComboFocus('_ctl32:Combo3');">
</span>
</span>
<script language=javascript>
var this_c="_ctl32:Combo3";
...
</script>
-----------------------
i don't have a problem actually creating the span or anything...what i need to figure out is how can i get the name part at run time ('_ctl32:Combo3').
it's for a javascript that requires the name prefix to do stuff...there's going to be many of the span/script blocks on a page, and it's going to do something like
eval(this_c + "_StatusDisplaySpan".innertext = "whatever";
any ideas?? need more clarification??
thanks. mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
-------------------------
<span id="_ctl32_Combo3_StatusDisplaySpan"
onblur="ComboBlur('_ctl32:Combo3');"
onfocus="ComboFocus('_ctl32:Combo3');">
</span>
</span>
<script language=javascript>
var this_c="_ctl32:Combo3";
...
</script>
-----------------------
i don't have a problem actually creating the span or anything...what i need to figure out is how can i get the name part at run time ('_ctl32:Combo3').
it's for a javascript that requires the name prefix to do stuff...there's going to be many of the span/script blocks on a page, and it's going to do something like
eval(this_c + "_StatusDisplaySpan".innertext = "whatever";
any ideas?? need more clarification??
thanks. mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu