Hi,

I've got a form where there my be an arbitrary number of items.
However, I have a problem when there is only one item.

I've added the type hint
<input type="hidden" name="[EMAIL PROTECTED]" value="String[]" />
The type hint works when I get the json string. The value is correctly
wrapped in square brackets.

However, in my esp, it iterates the letters of the value (if there is only one)
<% for(var i=0; i <currentNode.trackId.length; i++) { %>
     <div><%= currentNode.trackId[i] %></div>
<% } %>

I tried using the typeof(obj) operation in a test but, it returns
"object" regardless.

ideas?

thanks

Reply via email to