Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
THandlers and Menu
#1
Used HTML template.

My form add to ServerController with:
THandlers.Add('', 'MainForm', TContentForm.Create(TMyMainForm));

THandlers.Add('', 'Form1', TContentForm.Create(TMyForm1));
THandlers.Add('', 'Form2', TContentForm.Create(TMyForm2));

Link with:
http://localhost/form1
http://localhost/form2

Delphi generation my links (<a href="">Linki1</a>) to mastertemplate.html in {%MyMenu%}.

MyMenu.Caption:
<ul>
    <li><a href="form1">Form 1</a></li>
      <li><a href="form2">Form 2</a></li>

</ul>

How do i get my link from THandels to href?

<li><a href="' + IWServerController.THandels[1] + '">Form 1</a></li> !!!!
Reply


Messages In This Thread
THandlers and Menu - by matija - 07-30-2021, 08:30 AM
RE: THandlers and Menu - by kudzu - 07-30-2021, 06:21 PM
RE: THandlers and Menu - by matija - 08-02-2021, 05:04 AM
RE: THandlers and Menu - by Alexandre Machado - 08-03-2021, 04:55 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)