The JS file itself does the job (Only the function of concern has been posted), however this portion of the code is static (the other part is of course dynamic.) Anyway to the point now I wish to pass a certain colour value to the function "function processPolyLines()". Depending upon this colour value a certain portion of the highway will be illuminated.
the JS file (Traffic.js):
So now I have this basic JSP file (TrafficRequest.jsp):
So can anyone please help? Thanks!
PS: The main page is Traffic.jsp which is what the user will open to access the congestion information, I've included a small portion of it below to show how I am calling the Traffic.js file:
PS2: So what have I tried?
The above does not work.