<script>
var tids = {
308: 1,
312: 1,
313: 1,
314: 1
};
</script>
results in “missing } in XML expression with an arrow pointing to the first colon in the JS error console. Isn’t this a valid declaration?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you should fix your
<script>tag toNext, if you want to use numeric indexes, try to declare them as a string:
Please note, however, that you will not be able to reference them in object notation (i.e.
tids.308). You could simply use arrays instead of objects: