Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,201
» Latest member: free_bulk_email_verifier
» Forum threads: 2,150
» Forum posts: 10,471

Full Statistics

Online Users
There are currently 327 online users.
» 0 Member(s) | 324 Guest(s)
Bing, Google, Yandex

Latest Threads
ClassicRegionDraw
Forum: IntraWeb General Discussion
Last Post: JuergenS
04-17-2024, 05:35 PM
» Replies: 0
» Views: 81
CompressorImplementation
Forum: IntraWeb General Discussion
Last Post: JuergenS
04-17-2024, 05:27 PM
» Replies: 0
» Views: 78
IntraWeb 15.6.0 is out!
Forum: IntraWeb General Discussion
Last Post: Comograma
04-17-2024, 11:54 AM
» Replies: 11
» Views: 568
How to manage forms and v...
Forum: IntraWeb General Discussion
Last Post: David1
04-17-2024, 10:37 AM
» Replies: 0
» Views: 77
iwjqdbgrid button example
Forum: IntraWeb General Discussion
Last Post: joelcc
04-16-2024, 09:07 PM
» Replies: 0
» Views: 94
New demo available
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
04-16-2024, 03:54 AM
» Replies: 0
» Views: 131
IW 15.5.9 IWChart
Forum: IntraWeb General Discussion
Last Post: PaulWeem
04-15-2024, 12:50 PM
» Replies: 0
» Views: 114
Multipage websocket commu...
Forum: IntraWeb General Discussion
Last Post: davidbaxter
04-15-2024, 02:39 AM
» Replies: 5
» Views: 753
TIWServerControllerIniRea...
Forum: IntraWeb General Discussion
Last Post: Lorbass
04-12-2024, 10:59 AM
» Replies: 0
» Views: 138
Resize problems with IW 1...
Forum: IntraWeb General Discussion
Last Post: Lorbass
04-12-2024, 10:47 AM
» Replies: 9
» Views: 789

 
  Refresh template
Posted by: matija - 09-15-2021, 11:43 AM - Forum: IntraWeb General Discussion - Replies (2)

My case:  

with THandlers.Add('', 'form1', TContentForm.Create(TForm1)) do
  begin
    CanStartSession := true;
    RequiresSessionStart := false;
 end;


with THandlers.Add('', 'form2', TContentForm.Create(TForm2)) do
  begin
    CanStartSession := true;
    RequiresSessionStart := false;
 end;


Both Forms have mastertemplate.html. I this template dynamic Javascript in div create Bootstrap mega menu depending of language user. 
mastertemplate.html <div id="menu"></div>  

WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA fill this div with timer in tform1 and tform2. This work. I can not refresh this template OnCreate or OnShow thats why timer in form.
<div id="menu">
<ul>
      <li><a href="form1">Form1</a></li>
      <li><a href="form2">Form2</a></li>
</ul>
</div>

RefreshTemplate function is define in UserSession and run in timer individual form.

If i have open Form1 and click again link to form1 then load mastertemplate empty div for menu!

Is a change only refresh mastertemplate for all forms?

Print this item

  <iwbspath>
Posted by: oystein.jakobsen@sas.no - 09-15-2021, 05:41 AM - Forum: IntraWeb General Discussion - Replies (2)

After recent update to 15.2.37 (from last known working version 15.2.29), generated HTML looks like this where '<iwbspath>' insertion renders the page invalid.

<link href="/$/css/IWNotify__952076135.css" rel="stylesheet" type="text/css"/>
<link href="/select2.min.css" rel="stylesheet" type="text/css"/>
<link href="/<iwbspath>/bootstrap-3.4.1/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="/<iwbspath>/iwbs.css" rel="stylesheet" type="text/css"/>
<link href="/<iwbspath>/dyntabs/bootstrap-dynamic-tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" nonce="8ICdNy15+TwfRwZIu5EvyHSodS4">


I guess "/<iwbspath>/" comes from a global variable, but which global variable and where should it be updated; In form OnCreate or servercontroller OnConfig?

Print this item

Wink TIdHttp no ResponseContent on bad request
Posted by: fpctuxe - 09-14-2021, 07:33 PM - Forum: Indy General Discussion - Replies (3)

Hello,

1.
with the TIdHTTP i has problems on Rest- Server. Sends the Server on Bad Request (400, 404) the Client doesn’t received the ResponseContent.

I look and found a little workaround. 

I advanced IdHttp.pas

Definition:
TIdCustomHTTP = class(TIdTCPClientCustom)
private
  FRestMode: Boolean;  //Add
  procedure SetRestMode(AValue: Boolean);  //Add

public
  property RestMode: Boolean read FRestMode write SetRestMode; //Add 


Implementation:
procedure TIdCustomHTTP.SetRestMode(AValue: Boolean); //Add
begin
  if FRestMode=AValue then Exit;
  FRestMode:=AValue;
  if FRestMode then begin
    HTTPOptions:= HTTPOptions + [hoNoProtocolErrorException];
  end else begin
    HTTPOptions:= HTTPOptions - [hoNoProtocolErrorException];
  end;
end;

function TIdHTTPProtocol.ProcessResponse(AIgnoreReplies: array of Int16): TidHTTPWhatsNext;

else begin  //From case
  if not FHttp.FRestMode then begin //Add
    CheckException;
    Result := wnJustExit;
    Exit;
  end; //Add
end;

maybe that will help the users too Wink


2.
I have seen, you're working on Indy OpenSSL 1.1.1, very nice, thanks.

My question. When will the new Indy library be added to the Lazarus library.


Thanks for support.

Print this item

  Terminate and Re-Login Page
Posted by: matija - 09-14-2021, 06:52 AM - Forum: IntraWeb General Discussion - Replies (4)

Terminate my session with 

GGetWebApplicationThreadVar.Terminate('<!DOCTYPE html><html><head>...</head><body>... <a href="https://mypage.com">Re-Login</a> ...</body></html>');

I this command i have <a href> link for Re-Login my page

I dont want  this https://... i my href! Is not flexible. If set href="#" i get https://mypage.com/$/temp/eehrtbdfiojgt when if terminate.

How set href?

Print this item

  IntraWeb for RAD Studio 11 is out!
Posted by: Alexandre Machado - 09-13-2021, 09:03 PM - Forum: IntraWeb General Discussion - No Replies

Hi guys,

there is a new IntraWeb update available for download, version 15.2.37.

This version includes support to RAD Studio/Delphi/C++Builder 11 Alexandria, just released by Embarcadero. BTW, Delphi 11 is looking good!

https://www.atozed.com/2021/09/intraweb-15-2-37/

Enjoy!  Big Grin

Print this item

  delphi 11 support
Posted by: rudyPos - 09-13-2021, 12:28 PM - Forum: IntraWeb General Discussion - Replies (1)

When can Intraweb support for Delphi 11 be expected?

thanks... Big Grin

Print this item

  Maintain url with handler
Posted by: Anto90 - 09-08-2021, 07:51 AM - Forum: IntraWeb General Discussion - Replies (4)

Hi at all,
I have this situation: I have a link like this (in a tag) http://127.0.0.1:8888/Curriculum/KeyNumb...r&DaHome=1
I have registered an handler in this way
with THandlers.Add ('/Curriculum/', '', TContentForm.Create (TBSCurriculumCandidatoSingoloForm)) do
begin
  CanStartSession: = True;
  RequiresSessionStart: = False;
end;
so the /Curriculum/ display TBSCurriculumCandidatoSingoloForm form.
When clicked link http://127.0.0.1:8888/Curriculum/KeyNumb...r&DaHome=1 the form is displayed but the link in the address bar change like this: http://127.0.0.1:8888/hkn6AtmCEulz039mSC...urriculum/ this part KeyNumber-Surname-Name.html?CurriculumKey=KeyNumber&DaHome = 1 is deleted.
Is it possible to mantain all url like original (http://127.0.0.1:8888/Curriculum/KeyNumb...r&DaHome=1) for search engines?

Thank you

Andrea
P.s : i use intraweb 15.2.31

Print this item

  Show a new TIWAppForm and then go back to previous one
Posted by: giorgio_c - 09-04-2021, 06:02 PM - Forum: IntraWeb General Discussion - Replies (4)

I guess if I can show a new TIWAppForm from current html page, and then resume back to the first one, mantaing the orignal status.
Opening a modal form programmatically by JavaScript in the first one, and then show a new TIWAppForm, on "release" command I get a re-initialized HTML page of the first one, not the previous html page with actual status.

Print this item

  IW App inside an IFRAME
Posted by: ShaneStump - 09-03-2021, 02:45 AM - Forum: IntraWeb General Discussion - Replies (5)

Howdy All!

I have a customer trying to run my IW 15.x app inside an IFrame (which I have always said I don't OFFICIALLY support).

If I open the browser debug routines and look at the console output if my IW app is run from within an IFRAME, all my local resources in the WWWRoot folder get 404 errors. If I run the IW app outside of the IFrame, it works as expected.

Anyone else have this issue and come up with a fix?

All the best,

Shane

Print this item

  Renewed license key expiration date
Posted by: ioan - 08-31-2021, 08:46 PM - Forum: IntraWeb General Discussion - Replies (1)

I got an email that my license expires soon (Dec 02, 2021). I forwarded the email to my boss and he made the purchase, but the new license starts on 31/Aug/2021 and expires on 31/Aug/2022. 
Shouldn't the new one start when my current license expires and be good until Dec 02, 2022?

Print this item