Welcome, Guest
You have to register before you can post on our site.
Latest Threads
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:33 PM
» Replies: 1
» Views: 413
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:31 PM
» Replies: 2
» Views: 468
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 343
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 699
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 406
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 889
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 369
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,618
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 538
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 1,288
OnBrowserCheck in IW15.2.20
Posted by: jeroen.rottink - 11-09-2020, 02:54 PM - Forum: IntraWeb General Discussion
- Replies (4)
Hi Alexandre,
I use following code to disable unsupported browsers but keep support for some apps using a rest api
Code:
// Step 1. OnBrowserCheck
procedure TIWServerController.IWServerControllerBaseBrowserCheck(
aSession: TIWApplication; var rBrowser: TBrowser);
begin
// REST method is often called from a non-browser. change this so the call is accepted
if (rBrowser is TOther) and aSession.Request.PathInfo.StartsWith('/restapi/')
then begin
rBrowser.Free;
// accept the unknown browser as Firefox (probably the best idea)
rBrowser := TFireFox.Create(TFireFox.MIN_VERSION);
end
// handle unknown and non-supported browsers, they don't belong there (often script kiddies)
else if not rBrowser.IsSupported
then begin
rBrowser.Free; // free current browser object because it will throw an exception otherways
rBrowser := TFireFox.Create(TFireFox.MIN_VERSION);
TerminateSession(aSession, 403, 'Forbidden');
end;
end;
In IW15.2.20 requesting the restapi gives a AV because aSession is nil like stated in the release notes.
Can I test the request in this function in another way?
Chart.js + Template
Posted by: matija - 11-06-2020, 12:13 PM - Forum: IntraWeb General Discussion
- Replies (1)
I use intraweb with a HTML template (Bootstrap).
Does anyone have experience with this component chartjs.org?
How to fill chart.js with label and data?
Something from code:
Code:
datasets: [{
label: '# Years',
data: [2020, 2019, 2018],
tiwjqdbgrid issue
Posted by: Blanca80 - 11-04-2020, 10:32 AM - Forum: IntraWeb General Discussion
- No Replies
Hello,
I'd like to report an uncaught sintax error unexpected token in JSON related to tiwjqdbgrid
it indicates an error on a.JSON.parse(b+"") related to this line:
{"rows":[{"id":"1","cell":[2,"","","04\/11\/2020","173NUEVOS.PDF","nuevo modificado\r\n para el web\r\n","1","04\/11\/2020","SGA","SGA","ASUNTO"]}
it is produced from a tiwmemo when it has double line with a carriage return character (\r) or feed line character (\n).
and the grid shows loading... but never shows the data.
is there any solution i can do or it will be solved on the next update?
thank you very much
iwDBEdit and DataTypeOptions.StringCase
Posted by: aimpera - 11-02-2020, 03:04 PM - Forum: IntraWeb General Discussion
- Replies (2)
Hi,
I have a table with all name stored in uppercase.
When I set:
Code:
iwDBEdit1.DataTypeOptions.StringCase := scUpperCase;
the edited field is always in downcase.
No problem if I comment the above row (but in this case I can write in downcase and I don't want this!).
Edit
if scUpperCase is set, when I edit a field already in upcase, the value is in downcase:
but if I write somewhat all edit content is 'uppercased':
Best Regards, Alfredo.
Intraweb 15.2.18 with Delphi Sydney 10.4.1
IIS ASPX 500 error on long post requests
Posted by: JohBer - 11-02-2020, 12:25 PM - Forum: IntraWeb General Discussion
- Replies (9)
IW version: 15.2.18.
We get the below error on long post requests (more than 80 kb).
Seems like a file handle is opened without being closed.
Code:
[Exception: HttpExecute error: Cannot open file "D:\local\Temp\tmp99A1.tmp". The process cannot access the file because it is being used by another process]
IntraWeb.MainController.ProcessAppMode() +339
IntraWeb.MainController.Index() +68
lambda_method(Closure , ControllerBase , Object[] ) +62
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +182
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +28
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +58
System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +228
System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +10
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +24
System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +99
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9847873
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163
Attached Files
Thumbnail(s)