Jump to content

AjaxEvent is not working on URLFrame


robinhodemorais

Recommended Posts

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 ?

 

Link to comment
Share on other sites

  • 2 years later...
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...