Jump to content

jarto

Administrators
  • Content Count

    781
  • Joined

  • Last visited

  • Days Won

    169

jarto last won the day on November 24 2020

jarto had the most liked content!

About jarto

  • Rank

  • Birthday 02/11/1970

Profile Information

  • Gender
    Male
  • Location
    Dubai

Business

  • Company name
    The Smart Company AS
  • Sector
    Information technology
  • Position
    Development Manager

Smart Mobile Studio

  • Edition
    Enterprise

Recent Profile Visitors

1,163 profile views
  1. I am terribly sorry. I will message and e-mail him again.
  2. I'll make sure that @jorn solves this.
  3. I had a quick look at SmartNJ.Server.WebSocket.pas. It currently does this: // catch and cache remote URL if (request) then begin if (request.connection) then NJSocket.RemoteAddress := request.connection.remoteAddress; end; Maybe this could be changed to: // catch and cache remote URL if (request) then begin if (request.connection) then begin NJSocket.RemoteAddress := request.connection.remoteAddress; NJSocket.RemoteUrl := request.url; end; end; After that you could parse the parameters from RemoteUrl.
  4. Do you mean the Tabs and Scrolling and Listbox -sample?
  5. Fixed now in the Alpha branch. Thank you @Tim Koscielski
  6. First of all, that's a beautiful clock. Looks very nice 🙂 I can reproduce the AM/PM -bug, so let me have a look at it. Transparency can be controlled with normal properties like this: Ctrl.AlphaBlend:=True; Ctrl.Opacity:=0; You can also make your procedure more versatile, so it can be used with any control: procedure TFormClock.TransparentControl(ACtrl: TW3CustomControl); begin w3_setstyle(ACtrl.Handle, 'background', 'transparent'); w3_setstyle(ACtrl.Handle, 'outline', 'none'); w3_setstyle(ACtrl.Handle, '-webkit-box-shadow', 'none'); w3_setstyle(ACtrl.Handle, 'box-
  7. TW3FacebookLogin is a non-visual component, which is available in the Designer's Cloud-tab. It lets you add Single-Sign-On to your web page using Facebook credentials. To use this, you need an AppID, which you can obtain by registering at https://developers.facebook.com When you register, you need to specify the App Domains where you're going to host your web app. So, if you plan to have it at https://myserver.example.com/mywebapp/index.html, then you need to register myserver.example.com as App Domain. Then add TW3FacebookLogin to your form and set the necessary properties
  8. TW3GoogleLogin is a non-visual component, which is available in the Designer's Cloud-tab. It lets you add Single-Sign-On to your web page using Google credentials. To use this, you need a ClientID, which you can obtain by registering at Google: https://developers.google.com/identity/sign-in/web/sign-in When you register, you need to specify the URI where you're going to host your web app. This is also where you need to copy the html code that Smart Mobile Studio produces when you compile your app. So, if you plan to have it at https://myserver.example.com/mywebapp/index.html, then yo
  9. A new update is available. This one contains two new controls: TW3GoogleLogin TW3FacebookLogin Both are non-visual components, but they are available in the Designer under the Cloud-tab. These two controls let you add Single-Sign-On via Google and Facebook to your web page. To use them, Add the control to the form Set the AppId- or ClientId-properties You need to register at Google or Facebook to get these ids You also need to copy the app to the registered URI that you specify during registration Set the OnLogin and OnLogo
  10. It doesn't have to be exactly like that. There can be differences in function parameters, but for sure, the functions need to be there. I wonder if this is by design in JS.
  11. I've been trying to search the internet for an explanation as the JS code produced looks like this: mypromise.then(SuccessProc, ErrorProc);
  12. @lynkfs Oh, that helped so much! I've struggled at the concept of calling these external js apis when class references don't exists and also had no experience with using promises. But you helped me get going and now I'm making very good progress 🙂 Now I have TW3FacebookLogin- and TW3GoogleLogin-classes that both work. I'll have to read up a bit to add the necessary parameters (besides ClientId of the app), but I should be able to get them into alpha and component palette next week.
  13. @lynkfs It doesn't seem to use the platform api.
  14. @JimKueneman No, I haven't changed anything in WebSockets code.
  15. Does anyone have a working example of how to use Google's Sign-In api via their platform.js? I can find documentation and js code: https://developers.google.com/identity/sign-in/web/sign-in https://www.intricatecloud.io/2019/07/adding-google-sign-in-to-your-webapp-using-the-js-library/ ...but as I'm not at all used to using promises, I feel there's quite a learning curve here for me. With a working example I could turn it into an easy-to-use component in no time.
×
×
  • Create New...