thewca / tnoodle

Development for the official WCA scramble server
https://www.worldcubeassociation.org/regulations/scrambles/
GNU Affero General Public License v3.0
392 stars 93 forks source link

Scrambling UI in Opera #6

Closed clementgallet closed 12 years ago

clementgallet commented 12 years ago

Visiting http://tnoodle.tk/scramble on Opera 11.64 on Windows 7 only displays the background color. The javascript console displays:

[18/03/1970 15:40:52] JavaScript - http://tnoodle.tk/scramble/ Event thread: load Uncaught exception: ReferenceError: Undefined variable: Request Error thrown at line 299, column 1 in (callback, url, data) in http://tnoodle.tk/js/scramble.js: var request = new Request.JSONP({ called from line 221, column 3 in (callback, url, data) in http://tnoodle.tk/js/scramble.js: tnoodle.jsonp(callback, url, data); called from line 96, column 2 in (callback, puzzle, seed, count) in http://tnoodle.tk/js/scramble.js: var pendingLoadScrambles = tnoodle.ajax(function(scrambleRequests) { called from line 101, column 4 in competitionChanged() in http://tnoodle.tk/scramble/: scrambleServer.loadScrambles(scramblesLoaded.bind(null, puzzle), puzzle, seed, neededScrambles); called from line 740, column 2 in () in http://tnoodle.tk/scrambler-interface/js/ui.js: callbacks.competitionChanged(); called from line 602, column 2 in (name, canZip, callbacks_) in http://tnoodle.tk/scrambler-interface/js/ui.js: updateHash(); called from line 117, column 2 in () in http://tnoodle.tk/scramble/: var div = mark2.ui.initialize(tnoodleLink, canZip, callbacks);

clementgallet commented 12 years ago

Working on Opera 12 beta.

jfly commented 12 years ago

Yeah, Opera 11 doesn't have XDomainRequest. I've hacked around this here: https://github.com/jfly/tnoodle/commit/d3368ab64cfea9427647e2c76a63c0543cbbef3a. Lemme know if the current version (tnoodle.tk is the latest version of jfly/tnoodle, for the record) works for you in opera 11!

Please close this issue when you've verified that is working in Opera 11, or let me know if it isn't =).