How to use the ice.focus function in ice

To help you get started, we’ve selected a few ice examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dukei / any-balance-providers / ab-cell-tele2-corp / main.js View on Github external
'_WCPersonalAccount_WAR_PT_CC_WCPortlet_v1portlet_:personalAccountForm:_id_WCPersonalAccount_WAR_PT_CC_WCPortlet_v1portlet_:personalAccountForm:j_id88dropID':'',
        '_WCPersonalAccount_WAR_PT_CC_WCPortlet_v1portlet_:personalAccountForm:_id_WCPersonalAccount_WAR_PT_CC_WCPortlet_v1portlet_:personalAccountForm:j_id88status':'',
        '_WCPersonalAccount_WAR_PT_CC_WCPortlet_v1portlet_:personalAccountForm:balance_selectionHolder':''
    };

    params[shorteventid + ':corporate_balances_selectionHolder']='';
    params[shorteventid + ':personal_balances_selectionHolder']='';
    params['_WCPersonalAccount_WAR_PT_CC_WCPortlet_v1portlet_:personalAccountForm:personalAccountFormTmp'] = 'tmp';
    params['javax.faces.RenderKitId'] = 'ICEfacesRenderKit';
    params['javax.faces.ViewState'] = 1;
    params['icefacesCssUpdates'] = '';
    params['_WCPersonalAccount_WAR_PT_CC_WCPortlet_v1portlet_:personalAccountForm']='_WCPersonalAccount_WAR_PT_CC_WCPortlet_v1portlet_:personalAccountForm';
    params[eventid] = eventid;
    params['ice.session']= getParam(html, null, null, /session:\s*['"]([^'"]*)['"]/);
    params['ice.view']=1;
    params['ice.focus']='undefined';
    params['rand']=0.8372334879823029;
    
    var html = AnyBalance.requestPost(baseurl + "PT_CC_WCPortlet_v1-portlet/block/send-receive-updates", params);
    getParam(html, result, '__tariff', /Тарифный план[\s\S]*?]*>(.*?)<\/span>/i, [], html_entity_decode);
    getParam(html, result, 'company', /Наименование[\s\S]*?]*>(.*?)<\/span>/i, [], html_entity_decode);
    getParam(html, result, 'userName', /Абонент\s*<[\s\S]*?]*>(.*?)<\/span>/i, [], html_entity_decode);
    getParam(html, result, 'status', /Статус абонента[\s\S]*?]*>(.*?)<\/span>/i, [], html_entity_decode);
    
    AnyBalance.setResult(result);
}