Categories

ep.sslSwitch.addHandle()

Categories: Utilities

ep.sslSwitch.addHandle( function(event, form) )

Plugin: ep.sslSwitch

Description: Add an handle to the SSL switch controller.

  • ep.sslSwitch.addHandle( function(event, form) )

    version added: 6.11.2

    function(event, form)   Add an handle to the SSL switch controller. Receives the triggered event and the form element(jQuery object) as arguments

The ep.sslSwitch.addHandle() method adds handles to SSL switch controller, the controller execute all handles before the location switch to SSL mode on submit the form.

The ep.sslSwitch.addHandle() method handles all form and a elements which are marked with the SSLSwitch class.

  • Send an additional parameter on switch to SSL mode.

    Code:
    ep.sslSwitch.addHandle(function( event, form ){
        $('<input type="hidden">')
            .attr({
                'name':     'example',
                'value':    'test'
            })
            .appendTo(form);
    });