hi!
I am completely new to Javascript and I am trying to debug one that is driving me crazy... It is probably something very simple, but I just can't get it to not show me an error. The error is "TypeError: shortcut.custom1_h has no properties". Enclosed, it's the script:
<SCRIPT LANGUAGE="JavaScript" type="Text/javascript">
var shortcut=document.goodKids
var descriptions=new Array()
[String_Concatenate: EncodeNone, 'descriptions[0]=', '"Select a Phrase"']
[String_Concatenate: EncodeNone, 'descriptions[1]=', '"Select a Phrase"']
[String_Concatenate: EncodeNone, 'descriptions[', (math_add: (loopcount), '1'), ']=']"[var: (String_Concatenate: EncodeNone, 'phrase', (loopcount))]"
[String_Concatenate: EncodeNone, 'descriptions[', (math_add: (var: 'phrasesFound'), '2'), ']=', '"Enter A Custom Phrase"']
[String_Concatenate: EncodeNone, 'shortcut.custom1_h.value=', 'descriptions[shortcut.ListOfPhrases.selectedIndex]']
function showtext(){
[String_Concatenate: EncodeNone, 'shortcut.custom1_h.value=', 'descriptions[shortcut.ListOfPhrases.selectedIndex]']
}
</script>
Can anyone help?????
Where should I add the property for this javascript?
Thanks! Maria
I am completely new to Javascript and I am trying to debug one that is driving me crazy... It is probably something very simple, but I just can't get it to not show me an error. The error is "TypeError: shortcut.custom1_h has no properties". Enclosed, it's the script:
<SCRIPT LANGUAGE="JavaScript" type="Text/javascript">
var shortcut=document.goodKids
var descriptions=new Array()
[String_Concatenate: EncodeNone, 'descriptions[0]=', '"Select a Phrase"']
[String_Concatenate: EncodeNone, 'descriptions[1]=', '"Select a Phrase"']
[String_Concatenate: EncodeNone, 'descriptions[', (math_add: (loopcount), '1'), ']=']"[var: (String_Concatenate: EncodeNone, 'phrase', (loopcount))]"
[String_Concatenate: EncodeNone, 'descriptions[', (math_add: (var: 'phrasesFound'), '2'), ']=', '"Enter A Custom Phrase"']
[String_Concatenate: EncodeNone, 'shortcut.custom1_h.value=', 'descriptions[shortcut.ListOfPhrases.selectedIndex]']
function showtext(){
[String_Concatenate: EncodeNone, 'shortcut.custom1_h.value=', 'descriptions[shortcut.ListOfPhrases.selectedIndex]']
}
</script>
Can anyone help?????
Where should I add the property for this javascript?
Thanks! Maria