I want to define two or more var in my javascript code,but when I define the second one, the first one becomes invalid.I have searched this problem, but I don't why. Can anybody tell me how to deal with this? Here is my javascript code(It's used to convert JSON to HTML table):
<script type="text/javascript">
         var v_first = {{ pass_kegg|safe }}
         var v_seconde = {{ pass_tmp|safe }}
         function buildHtmlTable(myList) {
            //Builds the HTML Table out of myList json data from Ivy restful service.
         }
         function addAllColumnHeaders(myList)
         {
             //Adds a header row to the table and returns the set of columns.Need to do union of keys from all records as some records may not containall records
         }
    </script>
When I define only one variable,all things works fine. But when I fine the second variablev_second,the first variable v_first becomes invalid.
 
     
     
    