Re: JS question: how to create dynamicly generated link?

2017-07-26 Thread AudioGames . net Forum — Developers room : hammer via Audiogames-reflector


  


Re: JS question: how to create dynamicly generated link?

no problem. I realize upon further reflection, that solution was kind of ugly. Glad you found it somewhat useful.

URL: http://forum.audiogames.net/viewtopic.php?pid=321143#p321143





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: JS question: how to create dynamicly generated link?

2017-07-25 Thread AudioGames . net Forum — Developers room : nuno69 via Audiogames-reflector


  


Re: JS question: how to create dynamicly generated link?

Yes, that's basically what I wanted to do. Thanks

URL: http://forum.audiogames.net/viewtopic.php?pid=320982#p320982





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: JS question: how to create dynamicly generated link?

2017-07-25 Thread AudioGames . net Forum — Developers room : hammer via Audiogames-reflector


  


Re: JS question: how to create dynamicly generated link?

Is this what you want to do?This is an example of what you might want to do. This uses an event listener look at the link and at the script tag.For best results, use closer to a modern browser.             Example                Thing to download        SPAM        var specialLink = document.getElementById("specialLink");        var numClicks = 0; //this will count number of clicks        specialLink.addEventListener("click", function() {            if (numClicks>=1) { //if somebody clicked the
  link once, the href attribute will become a random string                specialLink.setAttribute("href", "fe");                 specialLink.setAttribute("aria-disabled");            }            numClicks = numClicks+1;        });    

URL: http://forum.audiogames.net/viewtopic.php?pid=320941#p320941





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: JS question: how to create dynamicly generated link?

2017-07-25 Thread AudioGames . net Forum — Developers room : hammer via Audiogames-reflector


  


Re: JS question: how to create dynamicly generated link?

Warning: this is _javascript_ just no jquery.My solution would be to try an onclick event or add an event listener and in that onclick or event listener, you can set the href attribute of the link to be an empty string.I will try it myself now.

URL: http://forum.audiogames.net/viewtopic.php?pid=320932#p320932





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

JS question: how to create dynamicly generated link?

2017-07-24 Thread AudioGames . net Forum — Developers room : nuno69 via Audiogames-reflector


  


JS question: how to create dynamicly generated link?

Hello,How can I create a dynamicly generated link? I mean, user clicks on the link, file downloads and the link gets inactive.

URL: http://forum.audiogames.net/viewtopic.php?pid=320745#p320745





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector