MSMK Posted October 6, 2023 Share Posted October 6, 2023 Доброе время суток. Хочу выполнить команду, по нажатию по ссылке, размещенная в Caption: Я принимаю условия <a href="#" onclick="return showAgreement();">Пользовательского соглашения</a> функция, выполняемая по нажатию ссылки: function showAgreement() {ajaxRequest(LoginForm.window, "showAgreement", [ "test1=12345", "test2=12345" ]);} функция хранится в файле .js выполнение по AjaxEvent формы логина: procedure TfmdLogin.UniLoginFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if SameText(EventName, 'showAgreement') then begin showmessage(Params.Values['test1']); end; end; Не работает, подскажите как глабольно называется переменная формы логин Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2023 Share Posted October 6, 2023 Добрый день, fmdLogin в Вашем случае. Quote Link to comment Share on other sites More sharing options...
MSMK Posted October 6, 2023 Author Share Posted October 6, 2023 7 minutes ago, Sherzod said: Добрый день, fmdLogin в Вашем случае. Спасибо. Не думал что локальные имена переменных, можно указывать в JS Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2023 Share Posted October 6, 2023 4 hours ago, =GGG= said: Не думал что локальные имена переменных, можно указывать в JS Но Вы же уже использовали ) 4 hours ago, =GGG= said: ajaxRequest(LoginForm.window Quote Link to comment Share on other sites More sharing options...
MSMK Posted October 6, 2023 Author Share Posted October 6, 2023 1 hour ago, Sherzod said: Но Вы же уже использовали ) я прикинул, что какие то константы заложены уже 😀 Quote Link to comment Share on other sites More sharing options...
MSMK Posted October 6, 2023 Author Share Posted October 6, 2023 1 hour ago, Sherzod said: Но Вы же уже использовали ) @Sherzod спасибо за оперативные ответы 👍 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2023 Share Posted October 6, 2023 🙂 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.