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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 97,874
» Latest member: linkae6688
» Forum threads: 2,426
» Forum posts: 11,371

Full Statistics

Online Users
There are currently 919 online users.
» 3 Member(s) | 912 Guest(s)
Applebot, Bing, DuckDuckGo, Google, lichtoday, linkae6688, xoilacvaptv

Latest Threads
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 162
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 135
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 154
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 451
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 225
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 622
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 217
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,213
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 344
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 971

 
  IWSignaturePad OnJpgImageUploaded Dont execute on 15.3.3
Posted by: actioneer - 05-03-2023, 08:13 AM - Forum: IntraWeb General Discussion - No Replies

Hi good day. I have IWSignaturePad with OnJpgImageUploaded that works on 15.2.69. However once I upgraded to 15.3.3 the OnJpgImageUploaded will not fire. Installed 15.3.4 also OnJpgImageUploaded don't execute. Install back 15.2.69 OnJpgImageUploaded executes again. Kindly help to check. Thank you.

(PS: when downgrade to 15.2.69 the IDE warns of new border options removed, can it be something added to the IWSignaturePad code that caused it?)

Print this item

  IntraWeb 15.3.x JavaScript code generation issue
Posted by: ebob42 - 05-02-2023, 02:55 PM - Forum: IntraWeb General Discussion - Replies (3)

I may have found a bug, or at least an issue in IntraWeb 15.3.4 that breaks existing IntraWeb applications.

IntraWeb 15.3.x made a change in unit IWRenderContext.pas where procedure TIWPageContext40.AddToJavaScriptOnce(const ACode: string); contains the following code:

Code:
procedure TIWPageContext40.AddToJavaScriptOnce(const ACode: string);
var
  len: Integer;
  LCode: string;
begin
  len := Length(ACode);
  if len = 0 then begin
    Exit;
  end;
  if (len > 2) and (ACode[len-1] = CR) and (ACode[len] = LF) then begin
    LCode := ACode;
  end else begin
    LCode := ACode + EOL;
  end;
  if Pos(LCode, FJavaScript) <= 0 then begin
    FJavaScript := FJavaScript + LCode;
  end;
end;

The line with "if Pos(LCode, FJavaScript) <= 0 then begin" is introduced in IntraWeb 15.3.x (and was not present in IntraWeb 15.2.69).

This causes problems in our case where we have a page with a TIWControl and an onkeydown Script Event:
Code:
if (event.which == 13) {
  console.log("HW");
  IWBUTTON_LOGIN_onclick(event);
  return false;
} else {
  return true;
}


The problem is caused in unit IWRenderContext;


Code:
procedure TIWPageContext40.FinalizeContext;
begin
  ...

  AddToJavaScriptOnce('  return true;' + EOL + '}' + EOL); // last line
end;

The last call to AddToJavaScriptOnce tries to add a JavaScript snippet that only consists of "return true;" and the closing }.

However, inside the AddToJavaScriptOnce, this snippet is found to be already in the FJavaScript (because it's part of the onkeydown Script Event shown in the second screenshot).

As a consequence the last call to AddToJavaScriptOnce has no effect: the JavaScript is not added, and inside the browser we only get the "function Validate(){" without the closing "return true;" and }.

WORKAROUND

A simple workaround is to modify the
Code:
  AddToJavaScriptOnce('  return true;' + EOL + '}' + EOL);


And change it into
Code:
  AddToJavaScriptOnce('  return true;' + EOL + '} // Bob' + EOL);


However, any other place where we only add a "return true;" and "}" will still be ignored, so this may still break IntraWeb applications in other places

FIX?

I do not know the reason why the condition was added to the procedure TIWPageContext40.AddToJavaScriptOnce, but a real fix appears to be to remove that if statement (again, it was not present in IbtraWeb 15.2.69):


Code:
  if Pos(LCode, FJavaScript) <= 0 then begin // prevent LCode to be added to FJavaScript more than once?
    FJavaScript := FJavaScript + LCode;


Both the workaround and the fix seem to solve the problem for us. Please let me know your thoughts, especially why the new if-statement in the AddToJavaScriptOnce is required, so I can avoid any other issues that may be introduced by my workaround or fix.

Thanks in advance.

Groetjes, Bob Swart

Print this item

  IW OAuth2 Question
Posted by: ioan - 05-01-2023, 08:46 PM - Forum: IntraWeb General Discussion - Replies (5)

I am currently trying to integrate the new OAuth2 protocol into my project, but I am facing difficulties in finding the correct approach. Typically, when a user navigates to our web address, I check in the "IWServerControllerBaseGetMainForm" method if they have a cookie set, indicating they are already logged in and have chosen to stay logged in.

There are two possible scenarios:

  1. If the cookie is not found or has expired, I set the "vMainForm" to the login form, "TfrmLogin", and prompt the user to log in again.
  2. If the cookie is present and valid, I set the "vMainForm" to the user menu, "TformUserMenu", and the user is presented with the main menu without having to log in again.
With the implementation of OAuth2, I want to achieve the same functionality. Specifically, I want to display a "Login with Google" button on the login page. If the user logs in successfully using their Google credentials, I want to avoid showing them the login page again in future sessions.

My question is, how can I check in the server controller whether the user is already logged in using their Google credentials so that I can set the "vMainForm" accordingly in "IWServerControllerBaseGetMainForm"?

Thanks!

Print this item

  IntraWeb 15.3.4 is out!
Posted by: Alexandre Machado - 05-01-2023, 05:52 AM - Forum: IntraWeb General Discussion - No Replies

Hi guys,

new maintenance update fixing a few things still pending since IW 15.3 release:

https://www.atozed.com/2023/05/intraweb-15-3-4/

Enjoy!  Big Grin

Print this item

  Browser font size (Priority support)
Posted by: valmeras - 04-27-2023, 06:20 PM - Forum: IntraWeb General Discussion - Replies (3)

I am using Intraweb 15.3.3 with Rad Studio 10.2.3 (C++ Builder).
Is there a function in Intraweb to get the browser font size?

Print this item

  Is there a conflict between Intraweb and some Bootstrap codes? (Priority support)
Posted by: valmeras - 04-25-2023, 08:35 PM - Forum: IntraWeb General Discussion - Replies (4)

I am using Intraweb 15.3.3 with Rad Studio 10.2.3 (C++ Builder)
I copied a small Bootstrap template code to create a login page. It is on Form2 on the attached demo.
If the template is on the main form, it works fine.
But when it is loaded on a second form which is launched from the main form IWButtons are not working as expected!
How to reproduce:
1. Run the application
2. Click on the button to open the Form 2
3. Click on any button on Form 2. No action will be performed!
Only after a second click, then the IWButton action will be performed.

What is weird is that there is no JavaScript code in the template which can interfere with IWButton events.
So, what is causing this weird behaviour? A conflict between Bootstrap codes and Intraweb?



Attached Files
.zip   Project3.zip (Size: 305.61 KB / Downloads: 9)
Print this item

  Refresh form with new template (Priority support)
Posted by: valmeras - 04-25-2023, 04:51 PM - Forum: IntraWeb General Discussion - Replies (3)

I am using Intraweb 15.3.3 with Rad Studio 10.2.3 (C++ Builder).
I need to be able to change the template loaded by the form each time the user chooses a different language.
The language selection is done through JavaScript : executeAjaxEvent(LanguageCode, null,"ChangeLanguage", true, null, false) which unfortunately does not force a refresh on the form!

ChangeLanguage(TStringList *Parametres)
{
    UnicodeString CodeLanguage = Parametres->Values["Code"];
     IWTemplateProcessorHTML1->Templates->Default = "myTemplate-" + CodeLanguage + ".html";
}

IWForm->AsyncReload() works but it prompts a message to the user which is a problem!

So, how can I force a refresh on the form when a new template is loaded without any message prompted to the user? Or another way to load a new template with form refresh?

Print this item

  client device ID
Posted by: Сергей Александрович - 04-25-2023, 11:16 AM - Forum: IntraWeb General Discussion - Replies (8)

Find out the ID of the device on which the client is running?
Situation :
When the client is working with the application, he left the program for a short time and must re-enter the username and password when re-logging in. 
The idea: 
To remember the ID of the device on which the client is working and, if the device ID has not changed when re-logging in, restore authorization without a LOGIN-PASSWORD request

Question: How do I find out the ID of the device on which the client is running?

Print this item

  webapplication.runparams.count
Posted by: joelcc - 04-24-2023, 09:48 PM - Forum: IntraWeb General Discussion - Replies (2)

I just upgraded an older application to iw15.2.49 and the WebApplication.RunParams no longer seem to be working.   Is there some setting that I need to change so that the params that are passed into the url are populated into the webapplication.RunParams?

Print this item

  Http.sys not start on 15.3
Posted by: max7575 - 04-20-2023, 08:01 PM - Forum: IntraWeb General Discussion - Replies (14)

I have an application type http.sys on windows server 2022 core version. With IW15.2.69 everything works well but after rebulit the project with 15.3 the application don't start. When I try to start the service, after a few second an error raise. The error message is: "The service not respond at control function". I check the windows log and the error details is:

"The file could not be accessed for one of the following reasons:
 There is a problem with the network connection, the disk where the
 files or drivers storage installed on your computer or the disk is missing.
 The Project1.exe program was closed due to the error."


The project files are stored in the main disk of the server.

I also tried to create an empty project but the result is the same.

How can I fix?

Thanks

Print this item