Click to See Complete Forum and Search --> : Error: has no properties


Maria Arias
01-24-2003, 12:57 PM
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

Maria Arias
01-24-2003, 05:46 PM
I am working with Lasso, and I need this script to populated a field based on what the user selects from a list. You can view a sample by going to: www.storkavenue.com and place an order for an announcement card, once you added to the cart, please select the personalize now link and the first page will have the field and code I am talking about. Thanks so much for your help.

Maria