|
<< Click to Display Table of Contents >> Navigation: Telegram > 2020 > 05 > 21 > Telegram_2020-05-21T22 |
2020-05-21T22:13:06
Veja este demo: type: link https://github.com/Atozed/IntraWeb/tree/master/XIV/Delphi/ContentHandlers
2020-05-21T22:13:39
Acabei de editá-lo para permitir isso. Veja o código no ServerController:
procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
var
FormHandler: TContentForm;
begin
THandlers.Add('', 'mydoc.html', TContentRedirect.Create(' type: bot_command /AtozedDoc .html'));
FormHandler := TContentForm.Create(TBlueForm);
// You can start the session using http:///blueform.html
FormHandler.CanStartSession := True;
FormHandler.RequiresSessionStart := False;
THandlers.Add('', 'blueform.html', FormHandler);
FormHandler := TContentForm.Create(TRedForm);
// But you can't start the session using http:///redform.html
// in this case it will be redirected to the main page
FormHandler.CanStartSession := True;
FormHandler.RequiresSessionStart := True;
THandlers.Add('', 'redform.html', FormHandler);
end;
2020-05-21T22:13:40
Eu já consigo navegar com os handlers...
2020-05-21T22:13:55
Isto ei já fiz ..
2020-05-21T22:13:57
É exatamente isso que estou mostrando lá
2020-05-21T22:14:46
O problema é aquele setAsMain
2020-05-21T22:14:58
nao é
2020-05-21T22:15:30
Vou rever aqui então....
2020-05-21T22:15:42
Eu já navego as páginas todas com a URL ..
2020-05-21T22:16:02
Mais vlw vou rever QQ coisa eu te pergunto
2020-05-21T22:17:29
Estou falando de iniciar uma sessão através de um endereço registrado para um handler
2020-05-21T22:17:44
Estou vendo aqui o demo