Paxa3101 Posted October 15, 2019 Share Posted October 15, 2019 Добрый день. Мне надо получить параметр task_num в событии формы UniFormAjaxEvent при переходе по истории. В OnCreate формы пишу следующий код UniSession.JSCode('window.addEventListener("popstate", function(event){alert(JSON.stringify(state));ajaxRequest(Ext.getCmp(''MainForm''), ''BackEvent'',[''task_num=event.state["task_num"]'']);});'); но возвращается пустая строка. Причем , если вставляю alert(event.state["task_num"]), то параметр показывает правильно, а при передаче в UniFormAjaxEvent, почему-то пустой. Что я неправильно пишу? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 15, 2019 Share Posted October 15, 2019 Добрый день, До сих пор используете триальную версию!? Quote Link to comment Share on other sites More sharing options...
Paxa3101 Posted October 15, 2019 Author Share Posted October 15, 2019 Нет, вчера установил последнюю лицензионную версию Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 15, 2019 Share Posted October 15, 2019 1 minute ago, Paxa3101 said: Нет, вчера установил последнюю лицензионную версию Спасибо! Пожалуйста, настройте Ваш email форума: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 15, 2019 Share Posted October 15, 2019 11 minutes ago, Paxa3101 said: [''task_num=event.state["task_num"]''] Попробуйте так: ["task_num="+event.state["task_num"]] Quote Link to comment Share on other sites More sharing options...
Paxa3101 Posted October 15, 2019 Author Share Posted October 15, 2019 Заработало! Большое спасибо! Email форума заполнил Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 15, 2019 Share Posted October 15, 2019 33 minutes ago, Paxa3101 said: Email форума заполнил На какой email зарегистрирована Ваша лицензия? Quote Link to comment Share on other sites More sharing options...
Paxa3101 Posted October 16, 2019 Author Share Posted October 16, 2019 adminsupport@westcall.ru Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.