Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

michaelrjohnson

macrumors 68020
Original poster
Aug 9, 2000
2,180
5
53132
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.)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.