| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 86,695
» Latest member: kgpatel12
» Forum threads: 2,413
» Forum posts: 11,337
Full Statistics
|
| Latest Threads |
Image question on tiwjqdb...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-17-2026, 05:18 PM
» Replies: 6
» Views: 4,417
|
IW 16.1.9 Invalid propert...
Forum: IntraWeb General Discussion
Last Post: Blanca80
07-17-2026, 08:06 AM
» Replies: 7
» Views: 2,047
|
Bootstrap5
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
07-17-2026, 03:38 AM
» Replies: 2
» Views: 539
|
CSS file not reloading af...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
07-17-2026, 03:14 AM
» Replies: 1
» Views: 175
|
Need Help Integrating Mic...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
07-17-2026, 02:38 AM
» Replies: 1
» Views: 161
|
Projeto Intraweb
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
07-17-2026, 02:12 AM
» Replies: 1
» Views: 217
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
07-17-2026, 02:11 AM
» Replies: 7
» Views: 850
|
OpenSSL and concurrent re...
Forum: Indy
Last Post: kbriggs
07-05-2026, 02:41 PM
» Replies: 5
» Views: 515
|
Intraweb + Lazarus
Forum: IntraWeb Dúvidas Gerais
Last Post: vonirpereira
07-03-2026, 06:35 PM
» Replies: 0
» Views: 119
|
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: Gregory_Twedt
06-24-2026, 04:40 AM
» Replies: 5
» Views: 968
|
|
|
| IWEDIT added to IWREGION creates additional DIV |
|
Posted by: Moskwa - 06-17-2024, 05:03 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hello,
I have a problem with IWEDIT added to IWRegion. Intraweb generates that code :
Code: <div aria-label="Wybierz skonto" class="btn-group" id="IWREGION9_FRAFRAME2" role="group">
<label class="btn btn-outline-primary" for="BUTTON_0_FRAFRAME2" id="IWLABEL_0_FRAFRAME2"><span style="font-size:18px">zgodnie</span><br><span style="font-size:14px">z umową</span></label>
<div>
<input autocomplete="off" class="IWEDIT1_FRAFRAME2CSS" id="IWEDIT1_FRAFRAME2" name="IWEDIT1_FRAFRAME2" spellcheck="false" type="text" value="IWEdit1">
</div>
</div>
where before IWEDIT1 I get additional DIV
In design I have only IWREGION9 and IWEDIT1 in it:
any idea why I get additional DIV ?
Marcin
|
|
|
| WebApplication.Form Size Props |
|
Posted by: pvh855 - 06-11-2024, 02:01 PM - Forum: IntraWeb General Discussion
- No Replies
|
 |
Hello.
IW v15.2.69
SessionOptions.UniqueURL = True
On MainForm.OnCreate event, im reading WebApplication.FormWidth and WebApplication.FormHeight props.
if i start my app by /$/start - all is good, props are filled.
if i start my app by root '/' request - app started, but props are empty (their values is -1)
Any advice how to fix that?
Thanks
|
|
|
| Page position |
|
Posted by: rburton - 06-11-2024, 09:20 AM - Forum: IntraWeb General Discussion
- No Replies
|
 |
I have a two form application, form 1 is a list with each item having a link, when I click the link it opens the second form to show a detail view. This all works fine except if I scroll down the list on form 1 and open the detail view, on hiding the detail form to return to the list it refreshes the page and returns the list back to the top rather than leaving the list in the same position as i originally left it.
Does anyone know way around this. Thank you
Richard
|
|
|
| AddStartHandler - how to bypass to an IWForm without creating a Session |
|
Posted by: medzoom - 06-08-2024, 07:30 AM - Forum: IntraWeb General Discussion
- No Replies
|
 |
I use the code from >Alexandre MAchado> Embrace the backbutton for my program with special Login-funtion, so everyone must take the login-credentials - even if he uses the back/Forwardbutton or just types in the hole URL.
But I want to make one IWForm accessable to everyone - so bypassed by the AddStartHandler?
Quote:The first one THandlers.AddStartHandler(), creates a new content handler for this form and sets it as the application’s Start handler, i.e. every new request that doesn’t have an associated session will be redirected to this handler. In practice, it means that every new request that creates a new session will be redirected to the MainForm, regardless of the URL. This feature is ideal to be used in applications that require a login, for instance.
How do I make an expecption to the function of "AddStartHandler"?
Code: // this doesnt work???
THandlers.Add('weather_info2', TContentForm.Create(TIWForm5));
Here is the code in the main-client-form.
Code: initialization
TIWForm1.SetAsMainForm;
// SetURL creates a content handler for this form and set's the URL for it according to the parameters
// In this case, I want the URL to be http://<domain>/MainForm:
TIWForm1.SetURL('', 'MainForm');
// I'm also creating 2 content handlers that I want to redirect to this same form:
// The StartHandler (i.e. it will catch all requests that create a new session
THandlers.AddStartHandler('', 'MainForm', TContentForm.Create(TIWForm1));
// And the root handler which will catch requests to the root address of your app
THandlers.AddRootHandler('', 'MainForm', TContentForm.Create(TIWForm1));
// this doesnt work???
THandlers.Add('weather_info2', TContentForm.Create(TIWForm5));
end.
|
|
|
| iwSelect and ItemsHaveValues Error |
|
Posted by: joelcc - 06-07-2024, 03:38 PM - Forum: IntraWeb General Discussion
- No Replies
|
 |
When I try and setup an iwSelect using soServerSide with ItemsHaveValues, when populating the list I get the following error
"The results could not be loaded"
Can you please fix/enhance this?
This is with iw 15.4.0
|
|
|
Indy IdHTTPWebBrokerBridge/TIdCustomHTTPServer threads keep on increasing |
|
Posted by: chris.j - 06-06-2024, 07:24 PM - Forum: Indy
- No Replies
|
 |
I have a customized IdHTTPWebBrokerBridge class which descends from TIdCustomHTTPServer and overrides the DoCommandGet method. Below is the basic code
Code: procedure TIdHTTPWebBrokerBridge.DoCommandGet(AThread: TIdContext;
ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
var
LRequest: TIdHTTPAppRequest;
LResponse: TIdHTTPAppResponse;
begin
LRequest := TIdHTTPAppRequest.Create(AThread, ARequestInfo, AResponseInfo);
try
LResponse := TIdHTTPAppResponse.Create(AThread, LRequest, ARequestInfo, AResponseInfo);
try
// WebBroker will free it and we cannot change this behaviour
AResponseInfo.FreeContentStream := False;
try
if TWebDispatcherAccess(FWebModule).DispatchAction(LRequest, LResponse) then
begin
if not LResponse.Sent then
begin
LResponse.SendResponse;
end;
end;
finally FreeAndNil(LResponse); end;
finally FreeAndNil(LRequest); end;
end;
I noticed that the thread count of the process keeps slowly increasing and even reached around above 1500 threads in a few days. It keeps on increasing until I am getting an "Access violation at address 00401ED5 in module 'xxx.exe'. Read of address 80030000" error. I am not sure why it keeps increasing over time. What might cause the threads to stay and not get released? I did set KeepAlive to true to save on the SSL handshake costs.
I have tried logging all requests and responses and do not see any error that might cause this. I also did not find any long running processes that are stuck in an infinite loop. The thread count does not justify the activity going on. Even when there is no more activity, the thread count does not decrease. I'm already using the latest Indy v10.6.3.3 and OpenSSL v1.0.2u DLL files.
|
|
|
| Simultaneous OnAsyncChange and OnAsyncClick on Touch Device |
|
Posted by: RenSword - 06-06-2024, 10:06 AM - Forum: IntraWeb General Discussion
- No Replies
|
 |
I need to bind OnAsyncChange on TIWDBEdit to trigger to field change to calculate some field then reflect changes to user, and I use a TIWButton.OnAsyncClick to Post the DataSet changes.
To use the sample project attached.
Sample.zip (Size: 8.04 KB / Downloads: 0)
1) Click Edit.
2) When in edit state, focus on the TIWDBEdit and try to change the code
3) Do not click other place so TIWDBEdit does not lose focus and trigger OnAsyncChange.
4) Click on Post button directly. (this will trigger TIWDBEdit.OnAsyncChange then TIWButton.OnAsyncClick)
I notice a different behavior between Mouse Click Device (Desktop) and Touch Device (Phone). When I use browser inspect tool, I can see the timing like this.
First Img: Mouse Click Device.png
First callback is OnAsyncChange and second callback is OnAsyncClick, it can be seen that they are far away and do not overlap
Second Img: Touch Device.png
It can be seen that OnAsyncChange overlapped with OnAsyncClick callback.
There are rare cases that will happen sometimes, like this image, OnAsyncClick finished faster than OnAsyncChange. This cause
Code: procedure TIWForm1.btnPostAsyncClick(Sender: TObject; EventParams: TStringList);
to be runned first and EventParams does not contain EDCODE=NewValue, so its posted without change in value
based on IWBase.js, when typing on edCode, it is added to window.ChangedControls, but bcz SendPostRequest of OnAsyncChange cleared the window.ChangedControls, SendPostRequest of OnAsyncClick cannot see edCode as changed and cannot pass the changed value to server
=========================================================================
if u uncomment the Exception in field change, you can see when you redo the above step
For Mouse click device, due to its no overlapping behavior, when OnFieldChange raise the Exception, OnAsyncClick callback is not run at all (the value on the field is reverted and posting is not done, this is the more correct behavior)
For Touch device, when OnFieldChange raise the Exception, OnAsyncClick callback is still runned (the value on the field is reverted and posted directly).
==============================================================================
This is probably not a bug, but rather a issue due to touch and click difference, any idea to solve this?
|
|
|
| TIWChartJS memory leak |
|
Posted by: ioan - 06-05-2024, 05:11 PM - Forum: IntraWeb General Discussion
- No Replies
|
 |
In the ChartJS demo, I enabled the memory leak report (ReportMemoryLeaksOnShutdown := true) and when closing the application the following memory leak is reported:
Code: ---------------------------
Unexpected Memory Leak
---------------------------
An unexpected memory leak has occurred. The unexpected small block leaks are:
29 - 36 bytes: TIWBorderOptions x 3
EDIT:
It looks like in the unit IWCanvas, at line 259 TIWBorderOptions is created and never freed. If I add FBorderOptions.Free; in TIWCustomCanvas.Dispose, the leak disappears.
|
|
|
|