I already use my own installed content handler for search engines along with the options
ServerController.SearchEngineOptions->RedirectToContentHandler and
ServerController.SearchEngineOptions->ContentHandlerPath.
Will that still work if I set ServerController.SessionOptions.AllowSearchEngines = false ?
What is the content of the build-in robots.txt file and where it will be located ?
I noticed a strange behavior in Intraweb 15.1.x when I click on a TIWImageButton with no events defined, the browser does a submit event (a refresh). Using a previous version (I tested iw 15.0.21) clicking does nothing, as expected.
What's wrong? (To reproduce It's sufficient to put a TIWImageButton in a empty form and compile with IW 15.0.x and 15.1.x)
the Intraweb Application Wizard creates by default a C++ project for the classic 32 bit Borland compiler,
but now the default compiler for Embarcadero RAD Studio 10.3.2 32 AND 64 bit is CLANG.
The classic 32 bit Borland compiler does not provide C++11 lamda function support,
therefore gsession functions like Excecute() and LookUp() probably can not be used with this compiler.
Turning off the classic 32 bit compiler creates an error message in IWInit.hpp
But I find all very confusing, because i need the return values on server side.
So Why should I use a callback method, when all I need to do is to get a result value that is on the client side?
Also, I´m not sure if I got this right.
Here is what I have so far...
1- the CallBackMethod:
procedure TfrmBase.clbkGridSel(aParams: TStrings; out aResult: string);
begin
aResult := aParams.Values['Selection'];
end;
2 - the registration of the callback method
procedure TfrmBase.IWAppFormCreate(Sender: TObject);
begin
WebApplication.RegisterCallBack('clbkGridSel', clbkGridSel);
end;
How do I get, on server side, the aResult from the callback method to process this information?
I wrote this method to execute the callback on client side, but as you can see, It doesn´t help me to get the information.
function TfrmBase.GetSelecaoGrid: string;
begin
WebApplication.
CallBackResponse.
AddJavaScriptToExecute('ajaxCall("clbkGridSel", "&Selection=" + GRIDCADUSUARIOGetSelected()');
end;
GRIDCADUSUARIOGetSelected() id the javascript function that will return the selected data.
In other words, what I need to accomplish, is to be able to call javascript "GRIDCADUSUARIOGetSelected() " from Server Side, and get it´s result value.
First of all, thank you for your creative work and tireless efforts.
However, I have found a memory-leakage problem which occurs each time when IW destroys a session. Even if it is a web page with only one button or no user codes at all (including all of your demos), when a session is destroyed, it only releases 1/10 of the memory it has consumed(15.1.3 is a little better but still far from satisfactory). For instance, it consumes approximately 1mb memory when a session starts and it spits back only 0.1mb memory when the session is killed.
Please use any one of your demos and evaluate the memory ‘black holes’. I usually set the sessiontimeout time to 1 minute to quicken the process but 10 minutes made no difference. I sincerely hope you could fix up the memory problem ASAP.
Thank you for your atention.
Ps: I used one of your demos named ‘Guess’. The pic below shows what I had in my TASKMANAGER:
Sorry I forgot to tell you the pic shows what I experienced with one of your IW demos called 'Guess'. You created this demo so I didn't post it as an attachment.