teijo / jquery-bracket

jQuery Bracket library for organizing single and double elimination tournaments
http://aropupu.fi/bracket/
MIT License
484 stars 253 forks source link

Unable to populate <option> list with previously saved json brackets #1

Closed wwwizzarrdry closed 11 years ago

wwwizzarrdry commented 11 years ago

The json encoding done with jquery.json-2.2.js works fine (The bracket information is stored correctly in the data/ directory). However, when I reload the page, none of the saved brackets populate in the drop down list to select. Any ideas on howto get this functionality working?

Nice work. Easily the best looking and functioning tournament scheduler i've seen,

--Ian

teijo commented 11 years ago

Are you referring to the jQuery Bracket server demo? If yes, you should check the error logs of which ever browser you're working on (and maybe your webserver's too). The drop-down works just fine on vanilla IE, Firefox and Chrome.

Have you put any restrictions on your browser's JavaScript execution? The drop-down is populated by Ajax call.

wwwizzarrdry commented 11 years ago

Dropped it on my linux server and it worked fine. Must have been a configuration issue somewhere in my WAMP setup, although error logs yielded nothing useful or relevant; so that remains a mystery. Thanks for the tip though. If I ever get around to implementing your design, I'll be sure to share the results. Again, great work. I love how you tackled this project. My pure html+png design felt sloppy and antiquated in comparison.

teijo commented 11 years ago

That's odd, especially since writing the files to the path worked just fine. If you used WAMP in Windows, maybe it's some bug with PHP and slashes in the file path? Next add some debug prints :)

Thanks and good luck!