| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 829 online users. » 0 Member(s) | 825 Guest(s) Applebot, Bing, Google, Yandex
|
| Latest Threads |
KanBan like behaviour
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
Yesterday, 09:31 PM
» Replies: 6
» Views: 352
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
10-02-2026, 04:14 PM
» Replies: 1
» Views: 485
|
TIWSummernote Issue
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
09-30-2026, 07:34 PM
» Replies: 1
» Views: 163
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:33 PM
» Replies: 1
» Views: 573
|
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:31 PM
» Replies: 2
» Views: 659
|
How can I get started? Do...
Forum: CrossTalk General Discussion
Last Post: taggame
09-17-2026, 03:17 AM
» Replies: 2
» Views: 4,360
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 429
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 832
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 478
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 1,058
|
|
|
| Issue when calling TerminateAndRedirect on an Amazon cloud server |
|
Posted by: michel.foucrier@excilone.com - 02-22-2023, 01:35 PM - Forum: IntraWeb General Discussion
- No Replies
|
 |
Hi,
We are facing an issue when calling WebApplication.TerminateAndRedirect on an Amazon cloud server (Windows Server 2019, 64 bits). However, everything works fine on the development computers and the other Windows servers we tested so far.
The TerminateAndRedirect method is called from a button async click event. On the cloud server only, this triggers an "AJAX request failed: The application server did not respond." error. Enabling the ExceptionLogger did not help because no exception is raised. The IntraWeb session gets correctly terminated though.
We tested replacing the TerminateAndRedirect call by the following instructions, but this still triggers the same issue:
WebApplication.CallbackResponse.AddJavaScriptToExecuteAsCDATA('window.location.replace("' + WebApplication.AppUrlBase + '");');
WebApplication.Terminate;
However, replacing by the following instruction does the trick (terminating the session and redirecting to the main page) on all the servers we tested (including the cloud server):
WebApplication.CallbackResponse.AddJavaScriptToExecuteAsCDATA('window.location.replace("' + WebApplication.AppUrlBase + '$/start");');
For information, we are using: - IntraWeb 15.2.49
- Delphi 10.4.2
- SessionOptions.RequiresExplicitStart := False
- SessionOptions.RestartExpiredSession := True
Is this issue already known or even fixed?
Thank you for your help.
|
|
|
| Catch Timeout |
|
Posted by: Mikael Nilsson - 02-19-2023, 10:03 AM - Forum: IntraWeb General Discussion
- Replies (5)
|
 |
Hi,
Is it possible to catch when a user reach the timeout and redirect them to a specific page?
I don't mean to keep the session alive. I want to do something like WebApplication.TerminateAndRedirect('https://xxx.yyy.com/Default/TimedOut.Htm');
|
|
|
| RegisterCallBack |
|
Posted by: Xenogall - 02-17-2023, 02:37 PM - Forum: IntraWeb General Discussion
- No Replies
|
 |
I'm struggling to get my callback to work each time a page is loaded. It always works the first time I create the page, but the callback does not work if I make the page a second time.
In my HTML I have a script to call a function when the page loading has completed.
<script defer>
ajaxCall("pageLoadedEvent", "");
</script>
In my application I register the callback in the form's OnCreate
WebApplication->RegisterCallBack("pageLoadedEvent", PageLoadedEvent);
The function PageLoadedEvent is called when the page has loaded. However, if I release this form and then create it again (e.g. return to login page and then login again), the callback does not work.
I've tried using the UnregisterCallback n the form's OnDestroy
WebApplication->UnregisterCallback(PageLoadedEvent);
but it doesn't seem to make any difference.
If I have the ServerController's RestartExpiredSession = true, the PageLoadedEvent can be called for a form that no longer exists, i.e. a previous form that has now been released. This crashes my application.
If I have the ServerController's RestartExpiredSession = false, the PageLoadedEvent isn't called when I make the form for a second time.
I'm using an old version of IW (15.0.17) as I can't upgrade until I can remove all the CGDevTools from my application.
If there's not way to fix this in the version of IW I am using, I'd be happy with a way of releasing the form, such that when I recreate it, I can register the callback to the new form.
Thanks,
Richard
|
|
|
| Difference between Async and Sync events |
|
Posted by: Lenfors - 02-15-2023, 11:36 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
Hello!
I really need to know what the difference is between asynch and synch events!
For instance, I created a new application with only a TIWTimer on the form. Then I created a OnTimerEvent doing nothing.
When run the OnTimerEvent is fired as it should.
Now I added a OnAsynchTimer event to the same IWTimer.
When run now the OnAsynchTimer is fired but not the OnTimerEvent?
Another example:
New empty application with only a event defined for OnResize doing nothing.
When starting the application or resizing the browser window OnResize is called as expected.
Now creating a OnAsyncResize event. Both OnResize and OnAsyncResize are called on form creation and browser form resize.
Now I added a IWTimer to the last example and added a OnTimer event to it.
The OnTimerEvent fires as expected but also the forms OnAsyncResize event?!
If I remove the OnTimer event and instead add a OnAsyncTimer the OnAsyncTimer is triggerd as expected but there is no OnAsyncResize triggered.
Is there some documentation about this? I Googled but can't find any good explanation.
Best regards, Mikael
|
|
|
|