Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Sarcaxxo you have to be authenticated with my website and send your session ID which is linked to your account. ;)
-
Sarcaxxo2887y@SteffTek okay 😂
Why didn't it work with chrome and the input? Maybe set e.preventdefault = true? -
@Sarcaxxo I dunno CSS and HTML enough to fully understand, I triggered an script with the onClick attribute. On chrome it just reloaded the page...
-
Sarcaxxo2887yYeah, the input triggers normal form submit. Add a parameter "event" to your function and call event.preventDefault()
This will stop the default submit action from happening.
https://developer.mozilla.org/en-US...
Related Rants
Working on my new WebSite/Shop while discovering an Error....
I got a "Download" button as <input> that triggers an JS-Script that makes a POST-Request to a target=_blank, that downloads the file via a header (so that people won't know where the content is located, but I blocked the source with .htaccess, too)
So the error: While testing in Mozilla everything worked fine, but as soon as I switched to Chrome THAT FUCKING STUPID DOWNLOAD PAGE WON'T FUCKING OPEN! I HAD TO CHANGE IT FROM AN INPUT TO AN DIV AND TO FIGURE THIS SHIT OUT IT COSTED ME FUCKING 1 HOUR! FUCK YOU CHROME! FUCK YOU! YES YOU FUCK YOU! YOU RUIN EVERYTHING! MOZILLA IS FASTER WHY THE FUCK DO I STILL USE YOU BESIDES OF PORN! OH WAIT I DON'T EVEN WATCH PORN BETTER UNINSTALL YOU NOW! FUCK YOUUUUUUUUUUUUUUUUUUUUUUUUUU
rant
you
fuck off
i love capslock
google
chrome
fuck