FirstLegoLeague / clock

Countdown clock for competition area
GNU General Public License v3.0
3 stars 15 forks source link

Local run clock with control not allowed #5

Closed kmeesters closed 10 years ago

kmeesters commented 10 years ago

When the clock is downloaded and run locally, the control windows cannot access the main clock because of restrictions in the browser. Specifically:

 Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match.

Tested in Chrome, Windows 8.1. Work in IE however when user 'allows blocked content'. Might be related to this: http://stackoverflow.com/questions/17950598/using-iframe-with-local-files-in-chrome

rikkertkoppes commented 10 years ago

To my knowledge, there is no way to fix that. Setting the document.domain will not work on local files. One solution is adjusting browser settings, but that cannot be asked from the general audience.

I added a note in the readme: 32a824d8ecdb0f3a549da8b264b24807ebe02d29