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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 106,314
» Latest member: noillirk
» Forum threads: 2,434
» Forum posts: 11,394

Full Statistics

Online Users
There are currently 1475 online users.
» 2 Member(s) | 1470 Guest(s)
Applebot, Bing, Google, comboilerinstallservicesbr, mumbaihifigirls

Latest Threads
IWDevTools
Forum: IntraWeb General Discussion
Last Post: AndreasK
Yesterday, 01:19 PM
» Replies: 0
» Views: 26
SSL Revisited
Forum: IntraWeb General Discussion
Last Post: rlebeau
10-19-2026, 09:24 PM
» Replies: 3
» Views: 568
SpinBox Button Size
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-19-2026, 06:12 PM
» Replies: 0
» Views: 240
Rerendering CG Tab Contro...
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-19-2026, 05:21 PM
» Replies: 0
» Views: 219
CSS in CGDevTools
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-13-2026, 04:12 PM
» Replies: 2
» Views: 653
Help with TIWPaintBox
Forum: IntraWeb General Discussion
Last Post: EmoPal
10-13-2026, 08:44 AM
» Replies: 0
» Views: 374
KanBan like behaviour
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
10-06-2026, 09:31 PM
» Replies: 6
» Views: 1,420
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
10-02-2026, 04:14 PM
» Replies: 1
» Views: 875
TIWSummernote Issue
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
09-30-2026, 07:34 PM
» Replies: 1
» Views: 536
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:33 PM
» Replies: 1
» Views: 907

 
  Http.sys and TIWCGJQPDFViewer error: Atozed or CGDevTools?
Posted by: aimpera - 09-13-2018, 11:36 AM - Forum: IntraWeb General Discussion - No Replies

Hi,

TIWCGJQPDFViewer error message is: PDF.js v1.10.88 (build: c62a1938) Messagge: file origin does not match viewer's

when I use Indy it's ok, no errors.

When I use new http.sys the TIWCGJQPDFViewer does't find pdf file (see below why)


Test scenario:
Public port 3434 redirected on private port 3535 (intraweb app use 3535 port), on my public IP XXX.XXX.X

From a remote site open a browser session http://XXX.XXX.X:3434

UserSession

Code:
function TIWUserSession.PreparePDF: string;

var ms : TMemoryStream;
begin
  Result := TIWAppCache.NewTempFileName;
  ms := TMemoryStream.Create;
  try
    ms.LoadFromFile('wwwroot/pdf/somePDFfile.pdf');
    ms.SaveToFile( Result );
  finally
    ms.Free;
  end;
  Result := TIWAppCache.AddFileToCache(WebApplication, Result, TIWMimeTypes.GetAsString(mtPDF), IW.CacheStream.ctOneTime);
end;


MainForm
Code:
procedure TIWForm1.IWCGJQButton1JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var pdfFName : string;
begin
 pdfFName := ServerController.UserSession.PreparePDF;
 with TiwFormPDFViewer.Create(WebApplication, pdfFName) do 
   Show;
end;

PDFViewerForm
Code:
constructor TiwFormPDFViewer.Create(AOwner: TComponent; pdfFile : string; showPreview: boolean);
begin
  inherited Create(AOwner);
  IWCGJQPDFViewer1.JQPDFViewerOptions.PDFFileName := pdfFile;
end;


From the browser console (remember XXX.XXX.XXX.X is my public IP) 

with Indy, 

<iframe style="width:100%;height:100%;border:0;" src="/pdf/jq/pdf.js/web/viewer.pdfv?file=http%3A%2F%2FXXX.XXX.XXX.X%3A3434%2Fpdf%2F%24%2Ftemp%2FATZKckrBtj3fu~hbGXiCzjY-W"></iframe>

decoded URL: /pdf/jq/pdf.js/web/viewer.pdfv?file=http://XXX.XXX.XXX.X:3434/pdf/$/temp/ATZKckrBtj3fu~hbGXiCzjY-W


with Http.sys:
<iframe style="width:100%;height:100%;border:0;" src="/pdf/jq/pdf.js/web/viewer.pdfv?file=http%3A%2F%2FXXX.XXX.XXX.X%3A3535%2Fpdf%2F%24%2Ftemp%2FATZepIzsB8XUeYSw2FW6aToMG"></iframe>

decode URL: /pdf/jq/pdf.js/web/viewer.pdfv?file=http://XXX.XXX.XXX.X:3535/pdf/$/temp/ATZlW4ZM9l-U0sTMNVGxvk5Xa

3535 is the local port and obviusly the PDF viewer can't get pdf file (from a remote site must be used 3434 open port)

With Http.sys the url for the cache file is with same port of intraweb application (3535)
while with Indy the cache file is correctly build with requested port 3434

If I simply open my public port 3535 (without a redirect 3434->3535) all works as espected.


Sorry for long post but it's very complicated to explain

Alfredo.

Intraweb 15.0.10, CGDevTools 4.1.0.102

Print this item

  New IWTreeView demo
Posted by: Alexandre Machado - 09-12-2018, 09:36 PM - Forum: IntraWeb General Discussion - Replies (1)

Hi guys,

thanks to Pete d'Oronzio we have a very nice demo of new IWTreeView features, including full Async support.

https://github.com/Atozed/IntraWeb/edit/...eeViewDemo

* this demo requires IW 15.0.11+

Please be aware that this demo uses the standard built in images but they can be easily configured. Everything in this tree view can be customized, including:
- sub-captions of nodes, images of nodes and also plus/minus sign, font and background of nodes and children, transition effect, custom css classes (and styles) for each style used.

Print this item

  Placeholder does not work IW15
Posted by: wadcompany - 09-12-2018, 01:24 PM - Forum: IntraWeb General Discussion - No Replies

Hello friends, I'm having a problem with IWDBEdit in the adminlte template with IW15. The placeholder is not working. I have already used the ExtraTagParams property in OnHTMLTag and have already tried it directly in the template. But in both cases it does not work, simply when rendering the placeholder is not rendered on the page.

Just to appear on IW14 did not have this problem. If anyone can give me a hand I appreciate it. Thank you.

Best regards

Wagner.

Print this item

  IntraWeb 15.0.11 is out!
Posted by: Alexandre Machado - 09-12-2018, 09:51 AM - Forum: IntraWeb General Discussion - Replies (21)

Hi guys!

New IW version with several new features and enhancements!

https://www.atozed.com/2018/09/15-0-11/ 

Enjoy :-)

Print this item

  Adding SSL/TLS to SMTP Email Sending
Posted by: paulcoshott - 09-12-2018, 08:21 AM - Forum: Indy - Replies (3)

Hi All,

I have been sending emails using SMTP and Indy for a while now, but only using port 25, as I have not added support for SSL/TLS. I think I have to add a TIdSSLIOHandlerSocketOpenSSL component, but I'm not sure of the properties I need to set to get this to work with

  1. Implicit SSL on port 465
  2. Explicit SSL (TLS) on port 587

Could someone tell what I need to do to get this to work? Thanks for any help.

Cheers
Paul

Print this item

  can rawbytestring cleared from memory ?
Posted by: Madammar - 09-11-2018, 04:25 PM - Forum: Delphi General Discussion - Replies (4)

how possibly i can zeromemory rawbytestring ?

Print this item

  Can you avoid phone number links in Edge?
Posted by: magosk - 09-11-2018, 01:59 PM - Forum: IntraWeb General Discussion - Replies (2)

We have a web application where we display phone numbers for informational purposes. MS Edge can transform text containing a phone number into a link. When this occurs in a grid where we have "row click", the web page hangs if you click the phone number link, and you have to refresh the page to get it working again. Is there any way to avoid this?

Best regards

Magnus Oskarsson

Print this item

  Compose mail message
Posted by: geremiah - 09-10-2018, 06:39 PM - Forum: IntraWeb General Discussion - Replies (5)

I would like to send an e-mail message from my intraweb application, composing it.
I'm using the mailto command with all the data needed for the message, and, for open it i use the webapplication.newwindow(), but, together with the message from the default mail client is opened another empty window too.
Is there a way for open only the mail client window with the mail message ?
Thank you.

Print this item

  How to prevent a clickable cell in a grid refreshing the whole grid
Posted by: Ian_F1 - 09-10-2018, 04:15 PM - Forum: IntraWeb General Discussion - Replies (3)

Hi,

It would seem that clicking on a clickable cell in a TIWGrid causes the whole Grid to get refreshed. How do I stop this occurring?

Here's how to see my issue:

  • Create a standalone Intraweb applicattion
  • Drop a TIWGrid onto the form
  • Add this to the OnCreate of the Form
Code:
procedure TIWForm1.IWAppFormCreate(Sender: TObject);
var
  i : Integer;
begin
  IWGrid1.RowCount := 100;
  for i := 0 to IWGrid1.RowCount-1 do
  begin
    iwgrid1.Cell[ i, 0 ].Text := i.ToString;
    iwgrid1.Cell[ i, 0 ].Clickable := TRUE;
  end;  { for i := Low to IWGrid1.RowCount-1 do }
end;

(NOTE: The only reason to add so many rows is so you get a scrollbar)

Now run the application and open the browser and scroll down to the bottom of the grid and then click on a cell. The grid will scroll back to the first row which to me makes me think it's been completely refreshed? I'd like for the grid to just stay where it was before I clicked on it.

Many thanks in anticipation.

Ian.

Print this item

  Conversion table Delphi to Intraweb components
Posted by: SergioFeitoza - 09-10-2018, 03:45 PM - Forum: IntraWeb General Discussion - Replies (2)

I am creating a simplified  converter to convert   VCL  forms with many components into Intraweb forms. Something like the good software MIDA but more simplified just to attend my own purposes. I am trying to find a table having in one column the VCL components (Delphi Seattle) and in another column the corresponding Intraweb columns. This is more or less the table which is in Mida converter http://www.midaconverter.com/vcl_to_intraweb.html but only the two coluns. Can you help me with this sending me a table in any format ?   The table can be sent to my private mail sergiofeitozacosta@gmail.com   Thank you in advance

The screens I need to convert are things like the attached and my intention is to use IW+ html/Bootstrap. The Mida converter is focused in pure IW conversion



Attached Files Thumbnail(s)
           
Print this item