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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 1,067
» Latest member: chester771
» Forum threads: 1,654
» Forum posts: 8,343

Full Statistics

Online Users
There are currently 94 online users.
» 0 Member(s) | 92 Guest(s)
Bing, Google

Latest Threads
TIWImage
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
Yesterday, 09:40 PM
» Replies: 3
» Views: 62
Let's Encrypt error
Forum: IntraWeb General Discussion
Last Post: JuergenS
Yesterday, 11:36 AM
» Replies: 4
» Views: 229
Bootstrap 4 + figure tag
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
Yesterday, 03:42 AM
» Replies: 10
» Views: 1,581
How call a procedure when...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
Yesterday, 03:16 AM
» Replies: 1
» Views: 56
Paypal JS SDK API
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
Yesterday, 03:00 AM
» Replies: 1
» Views: 194
How to make a Javascript ...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
Yesterday, 02:34 AM
» Replies: 5
» Views: 279
IWjQDBGrid column auto wi...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
Yesterday, 12:50 AM
» Replies: 3
» Views: 210
Freeing form variable
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
Yesterday, 12:48 AM
» Replies: 1
» Views: 66
IntraWeb 15.2.55 is out!
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
Yesterday, 12:24 AM
» Replies: 0
» Views: 35
Работа с Delphi в других ...
Forum: CrossTalk General Discussion
Last Post: Сергей Александрович
05-21-2022, 10:31 AM
» Replies: 0
» Views: 27

 
  IntraWeb 15.2.55 is out!
Posted by: Alexandre Machado - Yesterday, 12:24 AM - Forum: IntraWeb General Discussion - No Replies

Hey guys,

there is a new IntraWeb release available: https://www.atozed.com/2022/05/intraweb-15-2-55/

it also brings some exciting new stuff!

Enjoy!  Big Grin

Print this item

  TIWImage
Posted by: Сергей Александрович - 05-26-2022, 07:23 PM - Forum: IntraWeb General Discussion - Replies (3)

Delphi has a TImage component. I use it like this:
...
    mPng.LoadFromStream(mStream2);
    Image1.Canvas.Draw(0,0,mPng);
...

IntraWeb has a TIWimage component, but it does not have a Canvas property. How to use it?

Print this item

  How call a procedure when user clicks TIWURL
Posted by: DEKETO - 05-24-2022, 08:22 PM - Forum: IntraWeb General Discussion - Replies (1)

I'm writing an IntraWeb 14 application in Delphi and I want to reset and enable my input form when the user clicks on the URL to the instructions page.

However, TIWURL does not have an OnClick or OnAsyncClick event.  OnAsyncClick shows up via Code Completion, but I can't actually access and use it.  I know that there is an OnClick event in the ScriptEvents property, but I know nothing of Javascript and have no idea of how to write a script to call my Delphi code procedure.  My best guess is that I need to define a callback function, but I have no idea of how to call it via Javascript, and even better, how to pass a parameter back to Delphi from Javascript.

Does anyone know how to do this?  A simple example would be awesome!

Thanks in advance,

George

Print this item

Question Freeing form variable
Posted by: David1 - 05-23-2022, 08:28 AM - Forum: IntraWeb General Discussion - Replies (1)

Hello,
in a IW form I create a TObjectList<T> in my CreateAndInit constructor.
The constructor call the inherited Create(AOwner) as its first instruction.
In the OnDestroy method I am freeing the TObjectList<T> calling TObjectList<T>.Free.
When I move from this form to another I call TIWAppForm(WebApplication.ActiveForm).Release and the destructor is executed in the right way.

The problem raises when I close the application cause it is shown an AV error which is not shown if I remove the freeing of the TObjectList<T> in the Destructor.

It seems the form is released another time when the application closes.

Any advice about  how to remove my form variable avoiding the AV error when the application closes?

Thank you,
Davide

Print this item

  Работа с Delphi в других операционных системах (не Windows).
Posted by: Сергей Александрович - 05-21-2022, 10:31 AM - Forum: CrossTalk General Discussion - No Replies

I work with Delphi and Intraweb in Windows OS. Question. Will the Delphi compiler (Intraweb) work on a Unix (Linux) operating system?

Print this item

  HttpSys post size limits
Posted by: iwuser - 05-20-2022, 01:02 AM - Forum: IntraWeb General Discussion - Replies (1)

What is the limit on the POST body size for HttpSys applications?

And if it's low by default, how can it be increased?

I have not yet tested this myself, but I expect there must be some default limits in place, in the usual Microsoft way (i.e.: https://docs.microsoft.com/en-us/dotnet/...etcore-6.0), so I thought I'd ask before I get burnt. I cannot see this exposed in the ServerController, nor could I find any references to MaxRequestBodySize in IW sources.

Specifically, I have a service and I know I can do POST to it and I can see it's receiving data. In this case, it would be MIME64-encoded file contents, but generally it may need to be any random binary data.

Print this item

  Intraweb 14.2.7 & Delphi Alexandria
Posted by: André Manin - 05-18-2022, 02:20 PM - Forum: IntraWeb General Discussion - Replies (1)

Hello
I have an Intraweb version 14.2.7, does it work with delphi Alexandrai as shown on the site https://www.atozed.com/intraweb/features/
regards

Print this item

  Working with PNG data
Posted by: Сергей Александрович - 05-13-2022, 05:17 PM - Forum: Delphi General Discussion - Replies (4)

Good time of day!

I've never worked with images. Now there is a need to display the image received from the server.

Here is the response I get from the server as a result of the request:

{"code":"000","message":"Запрос обработан успешно","data":{"image":{"mediaType":"image/png","content":"iVBORw0KGgoAAAAN....................."}}}

Please tell me how to display the received image in the "content" parameter on the screen. I use Delphi

Print this item

  How to make a Javascript call
Posted by: DEKETO - 05-09-2022, 05:05 PM - Forum: IntraWeb General Discussion - Replies (5)

Here's what I want to do:

When my application starts and whenever the end user resizes the browser window, I want it to center horizontally in the browser window (if the visible window is wider than my region) or left-justify (if the window is narrower than my region).  I tried adding Div [margin: auto;] to my css but that did nothing, so I found a centering example in the IntraWeb Downloads page.  

Unfortunately, the example uses Parent.Width, which is effectively WebApplication.FormWidth, which is not the correct number.  For example, if my browser width is 1920 pixels and my region is 1000 pixels wide, it correctly reports a width of 1920 and centers at left position 460.  But if the user then resizes the window to 800 pixels wide, FormWidth is reported as 1460 (the previous left + width of my region) instead of 800, and so instead of setting left = 0, it erroneously sets left = 230.

I've looked online and have found live examples that display the correct visible browser dimensions whenever the screen resizes - one such example is here at https://usefulangle.com/post/190/javascr...dth-height

It appears that the solution is very simple in Javascript - all I need is window.Innerwidth.  My difficulty is that (a) I don't know Javascript, and (b) I don't know how to call Javascript from IntraWeb and get back a value, and that's my question: Can anyone please help me and show me how to make a Javascript call from Delphi + IntraWeb and then either (a) position my region via Javascript or (b) pass back the value of window.Innerwidth to Delphi so I can position things via Delphi code.

Many, many thanks in advance for any help you can provide - I have a feeling this is should be a really simple thing, but I simply don't know how to make the necessary call.

Kind regards,

George

Print this item

  Use IMAP to copy/verify folder on another server
Posted by: ArnoldGoat - 05-08-2022, 12:39 AM - Forum: Indy General Discussion - Replies (1)

Hi
I am trying to retire my home-based Windows Server on cost grounds, which contains a Communigate Mail server. This is a relic from the pilot system I had at home to model the school system I set up. I have now retired and need to dispose of the pilot which still contains domestic stuff. I have set up my email under Microsoft Family 365, and this sends and receives new emails to my existing email address OK. It has a generous 50GB mailbox per user, so I can also save my TB archive folders there.

I tried to use Thunderbird to drag and drop the pre-existing emails one folder at a time to the new server. This sort-of worked. I assume some sort of magic happens which enables the transfer between IMAP accounts without actually sending emails. I discovered that there are quite a few emails missing, and trying to copy many in one go just doesn't work reliably.

So here's my proposal? Is it viable? Are there traps to look for? Getting TB to work with 365 involved an app-specific password; I assume something similar is needed.

  • Write a Delphi program (I have a real 7 and a community 10.3) and use Indy10 IMAP to read the emails on the 365 server, and build a MySQL database with just the message-id as key so I know what's on the new one. There aren't too many there yet, and nothing new happens on the old server.
  • Then read the messages on the old IMAP server and ignore ones with a message-id matching that on 365, which means they copied OK.
  • For the missing ones, copy the email from the old one to the new one, one at a time - presumably with IMAP component, not sure exactly how - and check if it failed, presumably with an Indy error indication, then try again after an interval.
I am hoping I can make this fairly automatic. It doesn't matter if it's slow.

Regards
Ken

Print this item