讨论 » 开发

AutoSubmit(AutoConfirme)ForTLSalgeria

§
发表于:2018-12-30
编辑于:2018-12-30

AutoSubmit(AutoConfirme)ForTLSalgeria

/ConfirmeIf/ setInterval(function(){if ( document.getElementById("ajaxConfirmCall_submit") !== null ) {document.getElementById("ajaxConfirmCall_submit").click(); } }, 1000);

§
发表于:2019-01-02
编辑于:2019-01-02

I wrote a clicker. Got code to work yesterday!!! I gather the preferred method is now to use the mouseevent. Looking at this code reveals event is set twice which is a mystery to me.

  /* based on:
  https://stackoverflow.com/questions/902713/how-do-i-programmatically-click-a-link-with-javascript
  */
  function clickAnchorTag(inputObj) {
          var event = document.createEvent('MouseEvent');
          console.log ("proceeding to set new event")
          event = new CustomEvent('click');
          console.log ("clicking...")
          inputObj.dispatchEvent(event);
  }

` /* original version

        function clickAnchorTag() {
                        var event = document.createEvent('MouseEvent');
                        event = new CustomEvent('click');
                        var a = document.getElementById('nameOfID');
                        a.dispatchEvent(event);
        }
        */

`

§
发表于:2019-02-17

@"Megga Boussol" a dit : /ConfirmeIf/ setInterval(function(){if ( document.getElementById("ajaxConfirmCall_submit") !== null ) {document.getElementById("ajaxConfirmCall_submit").click(); } }, 1000);

c ta dire

§
发表于:2019-02-17

@"moi mem" a dit :

@"Megga Boussol" a dit : /ConfirmeIf/ setInterval(function(){if ( document.getElementById("ajaxConfirmCall_submit") !== null ) {document.getElementById("ajaxConfirmCall_submit").click(); } }, 1000);

c ta dire

need your help

发表回复

登录以发表回复。