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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 98,995
» Latest member: danhbaibz
» Forum threads: 2,426
» Forum posts: 11,371

Full Statistics

Online Users
There are currently 853 online users.
» 2 Member(s) | 848 Guest(s)
Applebot, Bing, Google, 98winnshopv1, danhbaibz

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

 
  IWBootstrap app and Apache
Posted by: troberts - 10-20-2019, 09:01 AM - Forum: IntraWeb General Discussion - Replies (8)

I have an IWBootstrap app based on one of the bootstrap demos. I have compiled it as a service and configured it to run on port 44001 and it runs correctly when accessed directly via the LAN using the server's local IP address. It switches from desktop to mobile as required.

I am wanting to deploy it with Apache. In the conf file I have created a VirtualHost entry for it as follows:

<VirtualHost *:80>
    ServerName mywebsite.com
    ProxyPass / http://127.0.0.1:44001/ disablereuse=on
    ProxyPassReverse / http://127.0.0.1:44001/ 
 </VirtualHost>

I can browse to the website from outside, but the desktop version is always rendered. It does not switch to the mobile version when browsing to it from a mobile device. Any ideas?

Print this item

  Pagination separator
Posted by: Rassamaha78 - 10-19-2019, 11:06 PM - Forum: IntraWeb General Discussion - No Replies

I use IWBSList with BSListType = bsltPagination property. When there are a lot of pages, I would like to use a space - a separator between pages, for example: 
1, 2, 3, 4 ... 50.
How can I add "..." between buttons ?

Print this item

  TIWGrid + TIWBSButton
Posted by: Rassamaha78 - 10-19-2019, 11:00 PM - Forum: IntraWeb General Discussion - Replies (1)

Hello. I am rewriting my project from regular IW to IWBootstrap (3).
I have a table (TIWGRid) in which several dynamic buttons are created, the code was like this:

Code:
  with grdGetNumber.Cell[ i, 4 ] do
    begin
     Control := TIWButton.Create( Self );

     with TIWButton( Control ) do
      begin
       Caption := 'Buy';
       Width  := 60;
       Height := 24;
       Name   := 'BTNGETNUMBER' + IntToStr( i );
       OnAsyncClick := OnBuyKeyAsyncClick;
       Tag    := i;
      end;

    end;
Now I want to use TIWBSButton, I added Parent to the code:
Code:
     with TIWBSButton( Control ) do
      begin
       Parent  := TWinControl( grdGetNumber );
       BSButtonStyle := bsbsPrimary;
       ...
      end;

The buttons on the page are displayed, but the page does not load to the end, the loading animation icon is constantly visible. How to add TIWBSButton to TIWGrid ?

Print this item

  IWFileUploader and drag&drop area
Posted by: cprmlao@hotmail.com - 10-18-2019, 08:05 PM - Forum: IntraWeb General Discussion - Replies (1)

Hi, 

I am trying enable IWFileUploader to show the drag&drop area without success with IW 15.
What properties do I have to set?

Regards,
Luiz

Print this item

  Input on ajax callbacks not working
Posted by: MJS@mjs.us - 10-17-2019, 09:05 PM - Forum: IntraWeb General Discussion - Replies (9)

I just implemented a new callback and all worked as designed on my dev machine.  I'm passing one parameter, in this case '06:00'.  Below is the callback output, looks normal:


[Image: callback-1.png]


After I moved this app to my server the callback seemed to stop working and this is the output:

  • The 1st entry looks ok but returns a 302, not 200.
  • Following 6 entries immediately come from the app and the parameters are munged starting with the ':' also returning a 302. 
[Image: callback-2.png]



Thinking it's a parsing issue I base64 encoded the parameter (then decode it to use it).

[Image: callback-3.png]



Now everything works.  Don't know if this is related to the other callback issues but maybe it's a clue.

Print this item

  PRevenitng a session from being created in OnBeforeDIspatch
Posted by: SWTwo6 - 10-17-2019, 04:28 PM - Forum: IntraWeb General Discussion - Replies (3)

Next dumb question:

In IWXI, I could set handled to true in the OnBeforeDispatch (after sending a bit of html to the response) and it would end the session there and then.

When I'm trying to do the same in IW XV, it *does* run the code, but seems to run the OnBeforeDispatch multiple times for a single connection, before either erroring or just rendering the front page of my app - there is no Handled property for me to tell it to stop.

What should I be using instead? I want to generate different html based on which subdomain was used to connect, and not have to redirect the URL

(IW XI code:

Responded := false;
    Response.StatusCode := 200;

    DirList := TStringList.Create;


  GetSubDirectories(IncludeTrailingPathDelimiter(ExtractFileDir(ParamStr(0)))
        + 'wwwroot\googlebot', DirList);

    if DirList.count > 0 then
      for x := 0 to DirList.count - 1 do
      begin
        if pos(UpperCase(ExtractFileName(ExcludeTrailingPathDelimiter
                (DirList[x]))), UpperCase(Request.Host)) > 0 then
        begin
          mystrings := TStringList.Create;
          mystrings.LoadFromFile(DirList[x] + '\index.html');
          Response.ContentType := 'text/html';
          Response.content := '';
          for y := 0 to mystrings.count - 1 do
          begin
            Response.content := Response.content + mystrings[y] + #10#13;
          end;
          Response.SendResponse;
          Responded := true;
          break;
        end
      end;

    if not Responded then
    begin

      Response.ContentType := 'text/html';
      Response.content := html;
      Response.SendResponse;

    end;


)

Print this item

  Access Violation when using Frames in IW15
Posted by: RichardS - 10-17-2019, 10:06 AM - Forum: IntraWeb General Discussion - Replies (3)

Hi - I am trying to track down an AV I get when using frames in an IW 15 application. These are inherited frames, and I have quite a number on the main IW form. The AV happens when a certain sequence of steps is followed.

The Delphi compiler simply tries to open IWApplication.pas when the error happens so of course I can't see quite what's going on, and if the error is in my construction or something in IW itself - my hunch is the latter, but perfectly possible I'm doing something wrong.

If I supply a zip of the source code with steps to reproduce, could somebody at AtoZed look at it for me? The application is confidential so would rather send it to you direct rather than upload here.

I've tried the latest IW 15.1.15 and on both Seattle and Rio IDEs with same results.

Thanks
Richard

Print this item

  Publishing IW XV through a TMG 2010 firewal
Posted by: SWTwo6 - 10-16-2019, 06:57 PM - Forum: IntraWeb General Discussion - Replies (4)

So, my latest adventure in thoroughly abusing Intraweb

I have a version in IW 11 that is published through a Microsoft Forefront 2010 TMG firewall, which works fine, but when I try to publish the same app produced in IW15 through the same firewall rules it's not working - the only js error I'm receiving is about the manifest.json file, but any buttons on my TMS grids - they just cause the website to hang, as if awaiting a response.

Does anyone know what is likely to have changed between IW XI and IW XV that I would need to update my firewall rules for?

Print this item

  TIWJQueryWidget: documentation and example
Posted by: lillux82 - 10-16-2019, 03:52 PM - Forum: IntraWeb General Discussion - Replies (3)

Hi everybody!
I'm searching on the web about documentation and examples of TIWJQueryWidget but i find nothing.
I need to display a barcode in a intraweb page, and i found this:
http://codeverge.com/embarcadero.delphi....ev/1049775
but i'm not be able to use tiwjquerywidget

thanks in advance

ps. sorry everybody for my english

Stefano

Print this item

  IW15 FileUplader and GetUploadedFileMimeType
Posted by: cprmlao@hotmail.com - 10-16-2019, 01:37 PM - Forum: IntraWeb General Discussion - Replies (20)

Hi,
Intraweb XIV iwfileuploader demo has  the next code. 
It seems 'GetUploadedFileMimeType' is contained inm IWFileCheck.pas not present in the folder.
What is the equivalent to 'GetUploadedFileMimeType' in IW 15?
Regards, Luiz

Code:
procedure TIWForm7.IWFileUploader5AsyncUploadCompleted(Sender: TObject;
  var DestPath, FileName: string; var SaveFile, Overwrite: Boolean);
var
  CurDir: string;
  MimeType: string;
begin
  // get the app path
  CurDir := TIWAppInfo.GetAppPath;

  MimeType := GetUploadedFileMimeType;

  // save in the same application directory, with the same name of the original file. Overwrite if it already exists.
  IWFileUploader5.SaveToFile(FileName, CurDir + FileName, True);

  // Inform IWFileUploader that we are taking care of file saving ourselves
  SaveFile := False;
end;

Print this item