Page reloads on validate removing results from view
GM-Script-Writer-62850 opened this issue · comments
To reproduce paste a JSON on http://www.jsonlint.com/
click validate
results flash on screen and are removed upon reload
adding ';return false' to the onclick event makes it work
i have this issue using both firefox and chromium
just cause i don't want to use youtube...
http://i.imgur.com/kTtOgc5.gif
http://i.imgur.com/5TPfvDl.webm (higher resolution)
Running this from the scratch pad does make it act correctly
document.getElementById('JSONValidate').setAttribute('onsubmit','return false');
i have no idea what is triggering the submit event on the form
this also fixes it
document.getElementById('validate').type='button';
the button has no type declared and i assume the browser is defaulting it to a submit button
It happened to me too. Page reload after I click Validate.
Maybe the author want us to try Pro ;)
Problem is, that u seem to have AdBlock installed - which also blocks Google Analytics. Tried it in incognito mode, where I have no extensions, and it worked.
This should be fixed - we're definitely not interested in the site being messed up when AdBlock is installed.