robinhodemorais Posted November 13, 2019 Share Posted November 13, 2019 I'm setting up a html calendar, I was using HTMLFrame, but I had some problems getting the layout right, so I switched to URLFrame and managed to adjust the layout smoothly, but his AjaxEvent is not working and I need to get the data when I click this is the event procedure TfrmAgeCadAgenda.UniURLFrame1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); Var stAux: TStringList; dia : integer; Begin stAux := TStringList.Create; stAux.Delimiter :='_'; stAux.DelimitedText := EventName; .... end; this is part of html <div class="schedule-cell" onclick="ajaxRequest(frmAgeCadAgenda.UniURLFrame1, 'novo_08:00_13',[])"><span class="invisivel">#08_00_13</span></div> What can it be ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 13, 2019 Share Posted November 13, 2019 1 hour ago, robinhodemorais said: AjaxEvent is not working Hello, This post may help you: Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted November 13, 2019 Author Share Posted November 13, 2019 Oops thanks for the return, I was really in need of this solution or sooner, but I got here otherwise too ... <div class = "schedule-cell" onclick = "top.ajaxRequest (top.frmAgeCadAgenda.UniURLFrame1, 'new_09: 00_13', [])"> <span class = "invisible"> # 09_00_13 </span> Quote Link to comment Share on other sites More sharing options...
warobert Posted September 1, 2022 Share Posted September 1, 2022 On 11/13/2019 at 10:08 AM, robinhodemorais said: Oops thanks for the return, I was really in need of this solution or sooner, but I got here otherwise too ... <div class = "schedule-cell" onclick = "top.ajaxRequest (top.frmAgeCadAgenda.UniURLFrame1, 'new_09: 00_13', [])"> <span class = "invisible"> # 09_00_13 </span> Tenho tido o mesmo problema, porém urlframe está em um frame para ser aberto em uma aba, não consigo identificar o evento acionado o que poderia ser? Obrigado 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.