Jump to content

Search the Community

Showing results for tags 'web-app'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

There are no results to display.

Forums

  • Welcome to Smart Mobile Studio
    • News and Information
    • Pre-Sales Questions
    • Smart In the Media
    • Smart Contests
    • Meta
  • Smart Mobile Studio Discussion
    • General
    • IDE
    • RTL
    • Code
    • Client Server
    • Platform
    • Graphics
    • Deployment
    • Suggestion box
  • Smart Mobile Studio support
    • Support
    • Bug report
  • General Discussion
    • Pascal
    • Delphi
    • Javascript
    • HTML/HTML5
    • CSS
  • Resources
    • Website
    • Download Smart Mobile Studio

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Company name


Position

Found 1 result

  1. Everyone, In my web app, I needed to get the URL that delivered the app to the browser. I initially thought there might be an object in SMS that would give me this info, but after looking, nothing looked like the obvious solution. So I knew these could be gotten in Javascript so that is what I did. My question is this, is there a better way to do this in SMS? Thanks for the feedback. Below is what I came up with in the InitializeForm procedure. procedure TForm1.InitializeForm; var URL: String; HOST: String; begin inherited; // this is a good place to initialize components // Inline Javascript to get data back to SMS asm @URL = window.location.href; @HOST = window.location.host; console.log('******************'); // Checking in browser to make sure it was correct console.log(window.location.href); end; FURL := URL; // Private object variable for use later FHOST := HOST; // Private object variable for use later end;
×