Currently the Intraweb application is in stand-alone mode.
The web app has three pages currently : A log-on page with username and password, a main page that is displayed after a successful log-on and a "request reset password" page.
On the log-on page there is a HTMLLabel ( "Forgot Password" ) that when clicked runs the following code:
TIWFforgotPassword.Create(WebApplication).Show;
On the TIWForogtPassword form is an TIWedit and a TIWButton. The IWButton has an OnClick function associated with it.
When I fill in the IWEdit and click the IWButton the first time after the window is shown, the TIWedit is cleared and the OnClick function is not called.
If I immediately fill in the IWedit and click the IWButton, again, the onClick function is executed. ( I have set a break point in the OnClick function so I know when it runs ).
Why is it taking two presses of the TIWbutton for the data to be submitted to the OnClick function?
I took the same executable and the same dll libraries (ssleay32.dll and libeay32.dll) from my old Windows 7 computer, but I received dll handle =0 and LastError returns 193 (Bad exe format bla bla).
I spent 2 hours to check if dll is 64 bits ot 32 bits and finally I did dumpbin (from Visual Studio community) to libeay32.dll and was surprices that libeay32.dll expects some other dll's
I'm using CGDEVTOOLS components. I have IWTimer component on a frame, when the Interval is reached I get a "Callback method not found: undefinded" error message.
I have a breakpoint on the OnTimer(I have tested also with OnAsyncTimer) but the program execution doesnt execute the event code.
Hi, I am sending json data from TIdHTTP to TIdHttpServer that contains arabic letters. But all the letters are received like this ???????????
The json text is in a memo so I convert it to stream using this function "WriteStringToStream" with "IndyTextEncoding_UTF8" encoding and yet the result is always bad. I even tested this using POSTMAN instead of TIdHTTP. What is the correct way to convert text with arabic letters to and from TStream using C++ builder Berlin?
Hi. I am trying to find and download the latest version of Indy 10 that is compatible with Delphi 2007. I have tried https://www.indyproject.org/download/v10 but the links doesn't work for me. Any other suggestions on where to find it?
I had a serious problem with iconv encoding library on Android 10 application developed with LAMW and Indy.
I received SIGEGV Exception with backtrace:
...
01-28 16:05:24.303 2648 2648 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
01-28 16:05:24.303 2648 2648 F DEBUG : Cause: null pointer dereference
01-28 16:05:24.303 2648 2648 F DEBUG : r0 e9595fb4 r1 00000000 r2 00000000 r3 00000000
01-28 16:05:24.303 2648 2648 F DEBUG : r4 e9595f80 r5 ecc07048 r6 ed0fb200 r7 ed0fb200
01-28 16:05:24.303 2648 2648 F DEBUG : r8 c4e2efe8 r9 ed0f3160 r10 c4e093bc r11 c38b871c
01-28 16:05:24.303 2648 2648 F DEBUG : ip c38b86bc sp c38b8600 lr c4d8b850 pc efe3a950
01-28 16:05:24.309 2648 2648 F DEBUG :
01-28 16:05:24.309 2648 2648 F DEBUG : backtrace:
01-28 16:05:24.309 2648 2648 F DEBUG : #00 pc 00066950 /apex/com.android.runtime/lib/bionic/libc.so (iconv+36) (BuildId: dcf0e174e93e33d22f35a631ba9c0de5)
01-28 16:05:24.309 2648 2648 F DEBUG : #01 pc 0010284c /data/app/org.teamlooktools.teamlookmobile-s_uRfmpjft4VcskmjhvlvQ==/lib/arm/libcontrols.so (BuildId: d24f8df194618599d7a0a2d459ad6f929a806d9b)
I recompile the libiconv.so library, but the problem still exists.
On Android 8-9 everything is OK.
So, I took a decision to try to eliminate libiconv dependancy form indy code.
Please, find attached here the changes
In short: I made a change in Idcompilerdefines with which in case of compilation for android under FPC I define USE_LCONVENC . In Idglobals.pas instead of iconv I use unit lconvencoding.
OutP := ConvertEncodingFromUTF8( AData, ACharSet, Done );
Result := 0;
if Done then begin
Result := Length( OutP );
Move( Outp[ 1 ], ABytes^, AByteCount );
end
else
begin
Result := Length( AData );
Move( AData[ 1 ], ABytes^, AByteCount );
end;
{$ENDIF}
instead of iconv.
PLease, may I kindly ask you who wants to test if everything is OK?
Edit: Now it works fine for my application. I update the files attached.
The problem under Android 10 disappear.
Hi, I am having issues with getting the timeout to function properly.
I have set a basic new application, set the timeout to one minute and I have IWSessionTimeOut.html in the templates directory.
I find that if you try and interact with the app immediately after the timeout has expired the page is shown correctly. However if you leave it for a couple of minutes later than that, I am getting the standard IW exception message Session not found rather than my timeout html.
Is this a bug in IW or is there something else I should be doing as it is not obvious to me.
As I have mentioned before, when you introduced the RenderAsyncEnabled feature, it broke my IW apps (after I just got them working from the previous breaks ).
Any how, I finally have some free time, I installed the latest IW, and my IWBS4 dialogs based on Loren Szendre Moab dialog components are broken.
I have a general Message Dialog class I wrote based on it and I am going to put together an example tomorrow with it broken.
Before I do that and if you see this message and answer, it there something you changed that would have broken the Moab code? I have RenderAyncEnabled = False in ServerController and the TIWForms.
Hello in my application, i am using a template file to with th IWTemplateProcessorHTML1 component.
In this template i have a little Javascript to know the type of device ( iphone, PC ....etc)
when i open th Html file inChrom ,it is ok the test is ok and my variables are appaering in Chrome.
But in my application nothin , the application is launching but nothing ara display en the screen.
We can't make java script in a template.
So, if it is my problem, how can i do to make javascript in my program, where , and how can i retrieve the result of the javascript in a delphi variable
this is my template
<html>
<head>
<title></title>
</head>