Greetings those proficient with javascript. I am working on creating a widget to display views from all the traffic cameras in the greater Cincinnati area. However, I've run into a problem with my lack of knowledge of javascript.
Essentially, I have an image that has each camera represented as a dot. That image is specified as an image map, where each dot (when clicked) displays the traffic cam image in place of the "dots" image. I am using js to swap the original image out for the traffic cam image.
My problem is that the widget functions as intended when the .html file is viewed in a browser, but when run in Dashcode (or on the Dashboard) it does not.
Any suggestions? I could really use some help troubleshooting this problem. Thanks!
The widget is available for viewing at: http://www.bobinsurance.com/mrj/widget/Tri-State Traffic.html
(Note: Only the bottom two dots on the interstate are currently functional.)
Essentially, I have an image that has each camera represented as a dot. That image is specified as an image map, where each dot (when clicked) displays the traffic cam image in place of the "dots" image. I am using js to swap the original image out for the traffic cam image.
My problem is that the widget functions as intended when the .html file is viewed in a browser, but when run in Dashcode (or on the Dashboard) it does not.
Any suggestions? I could really use some help troubleshooting this problem. Thanks!
The widget is available for viewing at: http://www.bobinsurance.com/mrj/widget/Tri-State Traffic.html
(Note: Only the bottom two dots on the interstate are currently functional.)