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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 429
» Latest member: oliver
» Forum threads: 577
» Forum posts: 2,794

Full Statistics

Online Users
There are currently 34 online users.
» 1 Member(s) | 30 Guest(s)
Bing, Google, Yandex, matija

Latest Threads
Get value from Javascript...
Forum: IntraWeb General Discussion
Last Post: matija
42 minutes ago
» Replies: 0
» Views: 5
New version 15.1.0 is now...
Forum: IntraWeb General Discussion
Last Post: matija
2 hours ago
» Replies: 16
» Views: 214
Browser Back Button Again...
Forum: IntraWeb General Discussion
Last Post: ShaneStump
5 hours ago
» Replies: 2
» Views: 12
Indy SSL
Forum: Indy General Discussion
Last Post: MusicBuddha
6 hours ago
» Replies: 3
» Views: 132
IW App with Bootstrap 4 D...
Forum: IntraWeb General Discussion
Last Post: ShaneStump
9 hours ago
» Replies: 6
» Views: 132
IW17 progress
Forum: IntraWeb 17
Last Post: kudzu
Yesterday, 07:48 PM
» Replies: 6
» Views: 79
IWListbox on mobile brows...
Forum: IntraWeb General Discussion
Last Post: kudzu
Yesterday, 02:57 PM
» Replies: 2
» Views: 59
Installing IW 15.0.24 und...
Forum: IntraWeb General Discussion
Last Post: Davide
Yesterday, 01:41 PM
» Replies: 2
» Views: 41
IdHTTP Post problem
Forum: Indy General Discussion
Last Post: rlebeau
Yesterday, 04:19 AM
» Replies: 1
» Views: 25
Advice about where put a ...
Forum: IntraWeb General Discussion
Last Post: kudzu
07-12-2019, 03:38 PM
» Replies: 5
» Views: 103

 
  Get value from Javascript to Label
Posted by: matija - 42 minutes ago - Forum: IntraWeb General Discussion - No Replies

In javascript I have a function that returns ID. 
I want to read this value from HTML javascript and display it on the Label.

procedure TMainForm.IWAppFormCreate(Sender: TObject);
begin

AddToInitProc('function GetId() { return 5; }');

end;


procedure TMainForm.IWAppFormShow(Sender: TObject);
begin
IWLabel1.Caption:= Here This ID from function GetId -> 5
end;

Print this item

  Browser Back Button Again #999,332
Posted by: ShaneStump - 9 hours ago - Forum: IntraWeb General Discussion - Replies (2)

Howdy All,

One of my competitors overlays the current web page with their web application and any attempt to leave the page (back button, entering a new URL, etc) pops up a dialog asking if you are sure.

Any idea on how to implement such a feature? Even if the user tries to change the URL?

Most of the grievances I get from my customers is because their customers use the back button, etc and screw up the web reservation process.

Thanks,

Shane

Print this item

  Installing IW 15.0.24 under Delphi 10.3.1
Posted by: Davide - 07-15-2019, 08:28 AM - Forum: IntraWeb General Discussion - Replies (2)

Hello,

I am trying to install IW 15.0.24 under Delphi 10.3.1.
The installation went well but I Don't find any IW tab and components under the components palette.
The path in library is well defined.
Any advice about how to get the components and wizards in my IDE?

Thank you,
Davide

Print this item

  New version 15.1.0 is now available
Posted by: Alexandre Machado - 07-14-2019, 09:15 AM - Forum: IntraWeb General Discussion - Replies (16)

Hi guys,

There is a new IntraWeb version available, 15.1.0

This version introduces several new features and enhancements.

Download link here: https://www.atozed.com/2019/07/intraweb-15-1-0/

See what's new here: https://www.atozed.com/2019/07/15-1-0-h/

Soon we are going to publish new blog posts and demos showing new features of IW 15.1

Notes:

  • TMS library should be compatible, but the user must rebuild all TMS packages from source code

  • CG Dev Tools users will need a new version from CG, once some changes in source code will be necessary

Print this item

  New IntraWeb updates available
Posted by: Alexandre Machado - 07-12-2019, 11:57 AM - Forum: IntraWeb General Discussion - No Replies

New update for IW 15 branch:  https://www.atozed.com/2019/07/intraweb-15-0-24/


New update for IW 14 branch:  https://www.atozed.com/2019/07/intraweb-14-2-12/


Later today we are going to release a new release with several exciting new features, IW 15.1! Stay tuned!

Enjoy!   Smile

Print this item

  IW App with Bootstrap 4 Demo!
Posted by: ShaneStump - 07-12-2019, 04:56 AM - Forum: IntraWeb General Discussion - Replies (6)

Howdy All!

I finally (after 3 extra months of committee decisions) have my new web reservations up on our demo site (it is in beta and demo mode).

Please let me know what you think:

VTS Web Reservations Version 3 (Demo)

The web app is responsive and will work with mobile/tablet/desktop browsers!

All the best,

Shane

Print this item

  IdHTTP Post problem
Posted by: BartKindt - 07-11-2019, 10:46 PM - Forum: Indy General Discussion - Replies (1)

I am trying to post weather data to the OpenWeatherMap API server.
They use a RESTful server (API 3.0).
The documentation on this is totally incomplete.

Using a third-party program called 'ARC' and a lot of research, I discovered that in addition to adding the KEY to the URL, it is also required that *before* the HTTP Request the same KEY is send, which in this ARC program is called an 'Action', with a 'Name' and a 'value'.
In another application reference on the Internet the same name+value where added in what was called the 'Params' of this application.

The only Params I have been able to find in the IdHTTP Client is here:

IdHTTP1.Request.Authentication.Params.AddValue('appid',APIKey);

But this cannot be done because the 'Authentication' is not created.
And when I try to create it manually, I get a
[dcc32 Warning] Unit1.pas(224): W1020 Constructing instance of 'TIdAuthentication' containing abstract method 'TIdAuthentication.DoNext'

I am not even sure if this is the right location for this 'name' + 'Key'.

The OpenWeatherMap API does not do any negotiation; When the HTTP Post is not excactly correct, it just gives a '400' and disconnects.

OnAuthorisation and OnSelectAuthorisation are never called.

How am I to add these values to the HTTP Post, *before* the body containing JSON data is send?

Print this item

  IW17 progress
Posted by: joelcc - 07-10-2019, 06:20 PM - Forum: IntraWeb 17 - Replies (6)

I was just wondering if there is an eta on when iw17 might be released.

Print this item

  Advice about where put a code to websocket
Posted by: cprmlao@hotmail.com - 07-10-2019, 03:08 PM - Forum: IntraWeb General Discussion - Replies (5)

Hi,
I have many iw forms, all inherited from a standard iwform(TIWFormStd).
I have a MasterTemplate html to all my IWForms.
I have my websocket server component in servercontroller module(I don´t know  if this is the better place)
I need the websocket client available in all forms, because my app has a chat to users.
In that MasterTemplate, I have the next script code to connect to websocket server:

Code:
<script>
   function wschat()
    {
        if (!ws || ws.state()!='open'){
          ws = new sgcWebSocket('ws://127.0.0.1:5414/auth/url/admin/1234');
        }

       ws.on('open', function(evt){
          console.log(ws.state())
        });   
        ws.on('message', function(evt){
          console.log(evt.message)
        })
       
   }
    wschat()
</script>

My problem is that when I open a new iwform, I allways release the old iwform. As the old form is released, the websocket connection in the frontend  is  destroyed as well and recreated when the new IWForm is active.

I´d like to know some suggestions about where I can put the websocket client code to avoid  it.

Regards, Luiz

Print this item

  IdDateTimeStamp gives strange result
Posted by: jollytall - 07-09-2019, 10:20 AM - Forum: Indy General Discussion - Replies (1)

I might have missed something, but tried a very simple code:

procedure TForm1.Button1Click(Sender: TObject);
  begin
  IdDateTimeStamp1.SetFromTDateTime(Now);
  memo1.lines.add(DateTimeToStr(Now));
  memo1.lines.add(IdDateTimeStamp1.AsISO8601Calendar);
  end;


and got the result:

9-7-19 12:06:56
2020-8-10T12:06:56,

i.e. the Year, the Month and the Day are all +1 compared to the real one. I tried other dates and always this offset.

Any idea?

I use Debian 9, Gnome 3.22.2, Lazarus 2.0.2., FPC 3.0.4, on 64 bit.

Print this item