> From: Spectrum WebDesign
>
> I'm sorry to be posting OT... but I've got a _javascript_
> problem that's plaguing me.
>
> This js script works fine...
>
> data = "" + "Depart " + i + " :" + spaces
> + "<input type='text' size=10 maxlength=30 name=" + inter
> "depart" + i +
> + inter + "'><br>";
>
> Now, converting to use tables and after CSS give me an error:
>
> data = "" + <TR><TD><DIV><P><B> + "Depart " + i +
> ":"</B></P></DIV></TD><TD><P> + "<INPUT maxLength=50
> + size=45 name="depart" + i + ></P></TD></TR>";
>
> What i need: show DepartX in left column and departX in right column.
Your line "data = "" +" is missing quotes
Without <TR><TD><DIV><P><B> in quotes, JS thinks it's a string
Put quotes around these and the close parts
Also, your name="depart" is unbalanced - you're using quotes to
open/close the string, and also using them within the string
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- OT: JavaScript problem Jillian Carroll
- Re: JavaScript problem Greg Landers
- OT: JavaScript problem Spectrum WebDesign
- Re: JavaScript problem Philip Arnold
- Re: JavaScript problem Greg Landers
- OT: Javascript Problem Issac Rosa