@tpdietzJan 10.2011 — #Appreciate the link, but it would be more helpful if you could point to the relevant lines of code, so we don't have to sift through all 300 of them.
@tpdietzJan 10.2011 — #For one thing, you're embedding PHP within the JavaScript and I don't see any PHP tags.
Also, many of the variables used in your dataString are declared within the 'for' loop and therefore have no scope outside where you use them to create dataString.
@tpdietzJan 10.2011 — #Well, someone else may need to answer the part about the php tags, but I'm assuming that the code at that link is HTML and any time you use PHP in the HTML you need to wrap in within <?php> <?> tags, as you did at the very beginning of the code. I don't see any of those tags in the javascript. If I am wrong about that, I apologize.
As for the second part of my reply, I presume you understand the concept of "scope" in javascript. If you declare a variable within a code block, if you try to access it outside of that block, it will be a different variable.
For example:
<i> </i>{ var inside = "Hello"; } document.write(inside);
will display nothing, since the outer "inside" is not the same as the inner "inside". You need declare the variable outside of the block in order to access it from outside of the block, like: