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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 84,502
» Latest member: xo88moccom
» Forum threads: 2,413
» Forum posts: 11,327

Full Statistics

Online Users
There are currently 575 online users.
» 4 Member(s) | 568 Guest(s)
Applebot, Bing, Google, Celotech Chemical, Gamephattaicom, go88heytop18, xo88moccom

Latest Threads
Need Help Integrating Mic...
Forum: IntraWeb General Discussion
Last Post: capheny
Yesterday, 06:43 AM
» Replies: 0
» Views: 26
OpenSSL and concurrent re...
Forum: Indy
Last Post: kbriggs
07-05-2026, 02:41 PM
» Replies: 5
» Views: 156
Projeto Intraweb
Forum: IntraWeb General Discussion
Last Post: vonirpereira
07-03-2026, 06:51 PM
» Replies: 0
» Views: 92
Intraweb + Lazarus
Forum: IntraWeb Dúvidas Gerais
Last Post: vonirpereira
07-03-2026, 06:35 PM
» Replies: 0
» Views: 47
Image question on tiwjqdb...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-01-2026, 12:19 AM
» Replies: 4
» Views: 4,276
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-01-2026, 12:04 AM
» Replies: 4
» Views: 633
CSS file not reloading af...
Forum: IntraWeb General Discussion
Last Post: Gustave
06-30-2026, 09:00 PM
» Replies: 0
» Views: 104
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: Gregory_Twedt
06-24-2026, 04:40 AM
» Replies: 5
» Views: 800
VCL conversion
Forum: Delphi General Discussion
Last Post: tobenschain
06-20-2026, 05:00 AM
» Replies: 0
» Views: 146
TIWjQDBGrid changing UI
Forum: IntraWeb General Discussion
Last Post: BoostedCruiser
06-08-2026, 02:02 AM
» Replies: 36
» Views: 70,974

 
  PReventing a second tab from opening the same session
Posted by: SWTwo6 - 10-14-2019, 11:29 AM - Forum: IntraWeb General Discussion - Replies (1)

How do?

I don't want to use the session ID in the URL, as we want to support users bookmarking the page easily, and  we need cookies enabled to allow the back button GlobalIntercept functionality to work as advertised, so I'm unable to use either of the "Mutliple independant sessions" options.


Is there any method by which I can force the session to only be valid in one browser window or tab at a time? Either by preventing a second tab from loading, or disabling the first tab on loading a second?

Print this item

  URLBase without trailing '/'
Posted by: MJS@mjs.us - 10-13-2019, 07:17 PM - Forum: IntraWeb General Discussion - Replies (6)

While switching a project to http.sys I noticed some odd behavior while testing (but http.sys is not the issue, problem also occurs in Indy mode).  

If you use 'URLBase' and reference the url without a trailing '/' the main page will load and the url in the browser will now display a trailing '/'.  If you reference the url again without a trailing '/the main page will load but a new session is created instead of using the original one.  In my case I just bookmarked the app without the '/' and I was able to create a couple hundred orphaned sessions with one minute of clicking the link.  I created a new, default IW project and the result is the same. A work around is to use an 'IWServerControllerBaseBeforeNewSession' event but then you get 404 without the trailing '/', not ideal.

[Image: 2019-10-13_13-42-01.png]

Print this item

  TIWTreeView
Posted by: pdinsd - 10-13-2019, 10:35 AM - Forum: IntraWeb General Discussion - Replies (1)

Is there anyway to disable a node from being clickable? I have a treeview where some nodes are info only, and should not be clickable.

Print this item

  TCPClient SSL on Android
Posted by: BartKindt - 10-12-2019, 10:16 PM - Forum: Indy - Replies (9)

I got a debug report from an Android user, where this happened:

The Client receives a "StartTLS" from the IdTCPServer (Part of my code).
The Client responces with a "STARTTLS" back, then does a Sleep(1000) (this solves some timing issues) and then switches the Passthrough to FALSE:

sleep(1000);
IdSSLIOHandlerSocketOpenSSL1.PassThrough := false;

The SSL Negotiating starts, and gets to this:
[S] [06:21:09Z] SSL StatusInfo: SSL status: "before/connect initialization"
[S] [06:21:09Z] SSL StatusInfo: SSL status: "before/connect initialization"
[S] [06:21:09Z] SSL StatusInfo: SSL status: "SSLv3 write client hello A"
[S] [06:21:09Z] SSL StatusInfo: SSL status: "SSLv3 write client hello A"


And then it stops. And there is no Exception raised.

The Internet connection is very unreliable at this point, and I expect there may have been major packet loss.

But the system did not recover from this situation, as there was no exception raised, it just hung there.

Question:
- At which point does the SSL negotiation start: Immediatly after PassThrough := false, OR after the first attempt to send data over the link?
- When the Internet connection fails at this point, (and possibly the *Server* got a TCP Reset) is should there be a time-out exception being raised? Because the actual TCP connection is already established.

Thanks, Bart

Print this item

  Uninstall Intraweb 14
Posted by: aranopas - 10-12-2019, 07:23 AM - Forum: IntraWeb General Discussion - Replies (2)

How can unistall Intraweb 14?
I alwais receive a strange error message.
Thank you.

Print this item

  Strange error
Posted by: aranopas - 10-12-2019, 07:14 AM - Forum: IntraWeb General Discussion - Replies (2)

How to unistall Intraweb 14?
I receive a strange message error:
'Run time erroe(at 90:259):
Could not call proc'
Thank you

Print this item

  Radio Group Item Index
Posted by: pdinsd - 10-11-2019, 10:19 PM - Forum: IntraWeb General Discussion - Replies (2)

I placed a TWIBSRadioGroup with two Items.  I then set the AsyncOnChange to show the itemindex of the new selected button.  However, it always says -1.  Your IWBSDemo shows it correctly.  I'm using the Items List of the TIWBSRadioGroup.  The only difference between mine and the demo is that my TIWBSRadioGroup is in a IWBSRegion, and yours is in a Form Group.  Not sure if that makes a difference or not.  Any suggestions?

Print this item

  Back Button control
Posted by: SWTwo6 - 10-11-2019, 05:36 PM - Forum: IntraWeb General Discussion - Replies (5)

I have recently upgraded from IW12 to 15 in Delphi 2010, and have sadly lost a brilliant piece of functionality - I have the following bit of JavaScript included in the header of each of my pages (using the ExtraHeader property) to prevent people from using the back button

<script type="text/javascript" >
   function preventBack(){window.history.forward();}
    setTimeout("preventBack()", 0);
    window.onunload=function(){null};
</script>


It wasn't *perfect*, as it could be bypassed with sufficient user investment, but it was pretty damned handy, and worked in every browser we tried it with. Unfortunately, after upgrading to IW15, the code is still appearing in the page headers but it doesn't appear to work at all. The built-in replacement from Intraweb (BackButtonOptions,mode = bmInterceptGlobal) sadly doesn't seem to be functional either in Chrome or Edge, although it is at least working in IE.

Does anyone have any idea why the above script would have stopped working between versions?

Print this item

  Como fazer um refresh a um IWDBGrid
Posted by: Cusco69 - 10-11-2019, 05:23 PM - Forum: IntraWeb Dúvidas Gerais - Replies (2)

Com a versão 14 do Intraweb, eu usava este procedimento para refrescar um IWDBGrid com Cell.Control para editar algumas colunas:
procedure RefreshIWGrid(zGrid: TIWDBGrid; Self: TIWAppForm);//2011-04-19 IW 11 version
var
  zPageContext: TIWBasePageContext;
  LControlRenderData: TIWHTMLTag;
  LControlContext: TIWCompContext;
  LContainerContext: TIWContainerContext;
begin
  zPageContext := Self.PageContext;
  LContainerContext := HTML40ContainerInterface(TIWDBGrid(zGrid)).ContainerContext;
  //2010-05-12 if you get A/v here, it is because renderinvisible controls on th eform is set to false!
  LControlContext := TIWCompContext.Create(zGrid, LContainerContext, zPageContext);
  //
  LControlRenderData := IIWHTML40Component(zGrid).RenderHTML(LControlContext);
  try
    LControlRenderData.AddParmsList(zGrid.ExtraTagParams);
    LControlContext.HTMLTag := LControlRenderData;
    zGrid.RefreshData(LControlContext, LControlRenderData);
  finally
    //if assigned(LControlRenderData) then//Don't free this, the controlcontext frees it
      //LControlRenderData.Free;
    if assigned(LControlContext) then//2011-01-25 Memory leak
      LControlContext.Free;
  end;

//  Self.AddToInitProc('FixDBGridHeaders(''' + zGrid.HTMLName + ''');');
end;


e funcionava lindamente.

Com a versão 15 do Intraweb estou a obter um AV na linha:
LControlRenderData := IIWHTML40Component(zGrid).RenderHTML(LControlContext);

e os dados não completamente refrescados. Já dei voltas e voltas e não consigo perceber porquê. O que mudou no Intraweb 15 para que isto tenha deixado de funcionar?

Obrigado

Print this item

  Open a PDF file in a new window
Posted by: SorenJensen - 10-10-2019, 09:18 PM - Forum: IntraWeb General Discussion - Replies (8)

Hi All,

I have changed the post completely as I now have a partly working solution:

I have managed to get a PDF file opened in a separat window, but only by copying the file into the wwwroot (contentpath) directory. When the file is there, WebApplication.NewWindows({filename}) will work. Both on IE11 and Edge.

However, the files I want to be able to open and show, are all on a document server (+/- 2 mill. files), and the program have access to the area. A function in the program checks the presence of the file before it allows the user to click a button to open and see the file. However, when WebApplication.NewWindow is called with a filepath, outside the wwwroot path, the browser that opens up, give an error 404.

So what does it take for the WA.NewWindow to be allowed to open a file on a shared network resource, outside the wwwroot path, but within the domain the webservice server is in ?

Obviously it works when the file is in the wwwroot directory, so a solution could be to copy the requested file over to wwwroot, show the file on screen, and then delete the copy after viewing it. The files are max. 5k each, so size is not a problem. But how do I copy it over ? FileExists(exactfilepath) works, but can I use something like XCopy(exactFilepath,contentpath) to copy it and then open it ? Or something similar ?

I've tried with Sendfile to get hold of the file on the document server, and to download it to the wwwroot dir, but sendfile do not work either. I hope someone else have been more sucessful and will explain how to.

Regards
Soren

Print this item