Click to See Complete Forum and Search --> : Javascript and Colons


nbrunskill
01-02-2003, 06:20 PM
Hi,

I'm working a web form with a javascript that creates a conditional select menu. I have it working fine for the most part except on thing. The form submits to a FileMaker databse, using CDML. CDML syntax requires that the name of my select menu have a colon and a period in it. For example, the HTML for the select box has to look like this:

<select name="timeCardID::t_shotName.1">
<option value="">DUMMY VALUES
</select>

Where I run into trouble is with the JavaScript. The code snippet below prevents the script from functioning properly because of the colons and periods it seems.

var oLBDest = document.the_form.timeCardID::t_shotName.1 ;

Has anyone encountered this or have any ideas for dealing with this problem?
thanks
Nate

nbrunskill
01-02-2003, 07:15 PM
Hi,

Thanks for the reply. Worked like a charm. Would it be possible to explain to me exactly what that change does? Sorry, I'm still learning JS.
thanks very much for the help!
Nate