Server IP : 66.29.146.62 / Your IP : 216.73.216.2 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/dokkdzvi/goldenmayar-omn.store/business-gov/js/ |
Upload File : |
function transitionToEvent(flowExecutionUrl, eventId, parameters) { var newform = document.createElement("form"); newform.action = flowExecutionUrl; newform.method = "post"; var input = createInputHidden("_eventId", eventId); newform.appendChild(input); if (parameters) { for (var i = 0; i < parameters.length; i++) { var paramInput = createInputHidden(parameters[i].name, parameters[i].value); newform.appendChild(paramInput); } } document.body.appendChild(newform); newform.submit(); } function xwin(url, name, width, height, features) { var l = (window.screen.availWidth) ? (window.screen.availWidth - width) / 2 : 0; var t = (window.screen.availHeight) ? (window.screen.availHeight - height) / 2 : 0; if (typeof (features) == 'string') features = ',' + features; var w = window.open(url, name, 'top=' + t + ',left=' + l + ',height=' + height + ',width=' + width + features); w.resizeTo(width, height); return w; } function setY(form) { var hiddenEl = form.elements['topScroll']; if (hiddenEl != undefined) { hiddenEl.value = $(window).scrollTop(); } } function scrollToY(form) { var hiddenEl = form.elements['topScroll']; if (hiddenEl != undefined) { $(window).scrollTop(hiddenEl.value); } } /** * Creates a hidden input with the given name and value * * @param inputName * @param inputValue * @returns {___anonymous1273_1277} */ function createInputHidden(inputName, inputValue) { //alert('input hidden. name = ' + inputName + '. value = ' + inputValue); var input = document.createElement('input'); input.type = 'hidden'; input.name = inputName; input.value = inputValue; return input; } /** * Adds a hidden input with the given name and value and submits the form */ function addInputHidden(form, inputName, inputValue) { var input = createInputHidden(inputName, inputValue); form.appendChild(input); form.submit(); } /** * Method used to register ENTER key handler for lists filtering criteria * * @param eventId * the event id which will be triggered on enter event */ function registerKeypressHandlerForEnter(eventId) { $('form input').bind("keypress", function(e) { // 13 is code for ENTER key. if (e.which == 13) { var form = $(document.activeElement).parents("form")[0]; addInputHidden(form, '_eventId', eventId); } }); } /** * Method used to fire a specific event * * Works for input fields. Doesn't work for links, since link don't contain reference to parent form. * * @param eventAction */ function fireEvent(eventAction, formElement) { var formEl = formElement? $(formElement)[0] : $(document.activeElement).parents("form")[0]; addInputHidden(formEl, '_eventId' , eventAction); } /** * Method used to fire a specific event * * Works for input fields and links as well. * * @param eventAction */ function fire(eventAction, element) { var formEl = $(element).closest("form")[0]; addInputHidden(formEl, '_eventId', eventAction); } /** * This method redirects to another flow state. The caller (JSP) must instantiate the "submitFormId" variable. * An example can be found in "RequestCertificateConfirmAndPay.jsp". * @param actionUrl */ function redirectFunction(actionUrl) { var formEl = document.getElementById(submitFormId); formEl.action = actionUrl; formEl.submit(); } /** * Template function */ function showLoaderWithoutTimeout() { } /** * This method is called from a popup window. The parent window must include this library in order to handle the popup request. * For now, it is used for ITA Payment Gateway Service. * @param url */ function doOnReceiveRedirectResponse(url) { showLoaderWithoutTimeout(); redirectFunction(url); } /** * Clears value of field with provided id * * @param fieldId ID of field to clear */ function clearField(fieldId) { var field = $("#"+fieldId); field.val(''); console.log(field); } function submitDate(eventId, formName) { var form = document.getElementById(formName); addInputHidden(form, '_eventId', eventId); }