Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by COMFIED


    GOTO Equivalent

    I have instead modified my code to use timers - TW3EventRepeater - and achieve the same objective. On browser apps, I guess async timers are more elegant solution.

    GOTO Equivalent

    Hi Is there a smartmobilestudio equivalent to the delphi GOTO command to jump to a label or loop within a procedure?
  3. Thanks. I'll try out the combination of opacity+stack blur.. I think it should work!
  4. Is there a simple way to get an image blur effect on a translucent panel placed over a background image? I am trying to make translucent pop up notifications over a game with lots of graphics - similar to attached .
  5. Hi I'm trying to calculate the days between two dates and the hours between two timestamps. Any idea how I can do this on smart mobile studio?
  6. Hi I'm referring to this demo which shows how to insert a single field into a WebSQL database. https://smartmobilestudio.com/2013/01/08/working-with-websql/ Any idea how I can modify the SQL code below to make insert work with multiple fields? mTrans.Execute("insert into customers (name) values (?);",['john doe #' + IntToStr(x)]);

    TMS Web Core

    Anyone seen the new TMS Delphi to html/ JavaScript components? http://tmssoftware.com/site/tmswebcore.asp I think this product is still in closed beta, to launch in a few weeks.
  8. Try changing text-decoration: none; to display: inline-block; and then switch the order first .XListBoxItemStyleC{ color: #000000; background-color: #FFFFFF; text-decoration: line-through; } then below it .XListBoxItemStyle{ color: #000000; background-color: #FFFFFF; display: inline-block; } see: https://stackoverflow.com/questions/29374006/line-through-not-working-as-should
  9. I'm rolling out a mass market app developed using smart mobile studio. I have compiled with code packing and obfuscation options. Is the compiled code secure from reverse engineering and simple hacking? Are there any third party html/js security tools you can recommend for strong code protection?

    Vibration API

    Thanks. It finally worked! When working with mobile browser, this code will work browserapi.window.navigator.vibrate(200); But when web app is run inside android app, it's easier to use a Cordova plugin then change code to asm navigator.vibrate(200); end; And set permissions in config.xml > android.permission.VIBRATE

    Vibration API

    I am trying to use the vibration API on android phone but it's not working - seems there is something I'm not doing right I have tried the code below, but none is working. Is there a way to create vibration using SMS code without cordova plugin? asm navigator.vibrate(500); end; and asm window.navigator.vibrate([500]); end; and asm function vib() { navigator.vibrate([500]); } vib(); end;
  12. Hi IElite I have built a reporting app using SMS, running on Microsoft Windows 10, and the idea is to save the report as a external file into a Windows folder (with human selection of filename and destination). Is this possible?
  13. I have text content in a memo that I wish to save. Is there a way to pop a "Save As" dialog box and select saving location and file name then save memo content into a file?

    GPU Processing

    I am building a machine learning (A.I.) app for mobile devices and push the A.I. processing from the CPU to GPU so as to get better performance. I have tried the library jpu.js and seen the benefits of GPU speed in matrix computations - website http://gpu.rocks/ Any ideas on how I can build a GPU processing procedure natively using SMStudio?
  15. Thanks Nico I guess the trick is to get Smart Mobile Studio to read contents of a POST from https://graph.facebook.com/v2.6/me/messages
  16. I'm trying to build a Facebook messenger bot. It requires reading and sending JSON data from messenger. Sending a json post message is no problem. Anyone with an idea on how to READ incoming JSON POST data using SMARTMOBILESTUDIO? In other words can a SMARTMOBILESTUDIO html webapp work as a webhook?
  17. I figured it out. It's as simple as creating a HTML <form> with variables and then submitting it. For example implementation function document: variant; external "document" property; var SMS_RECIEPIENT, MESSAGE_STRING: string W3LabelREG.Caption:= '<form name="RegForm" id="RegForm">'+ '<input type="text" id="number" value="+ SMS_RECIEPIENT+ '"/>'+ '<input type="text" id="message" value="'+ MESSAGE_STRING+ '"/>'+ '<input type="submit" value="SEND SMS" id="sendMessage" />'+ '</form>'; document.RegForm.submit();
  18. I'm looking for help in integrating the Cordova plugin for sending SMS via SmartMobileStudio for use in android app. Here is the plugin and code: https://www.raymondcamden.com/2014/12/11/cordova-example-sending-sms-messages Any help/ example with how I can use this code in SmartMobileStudio?
  19. Any easy way of reading the MAC Address of client device in smartmobilestudio? I am trying to modify this code - http://codingresource.blogspot.co.ke/2010/02/get-client-mac-address-ip-address-using.html
  20. Hi warleyalex I am getting an unknown name error on "JPromise" - under which library is jpromise?
  21. Hi Is there a way of checking if a file exist? I am trying to check if a file exists in the res/ folder, and download it into a json storage if not found. For Delphi I use FileExists
  22. I'm seeking help in making this Delphi code (from http://www.codeface.com.br/?p=1679) work in SmartMobileStudio. function EncryptStr(const S: String; Key: Word): String; var I: Integer; const C1 = 53761; C2 = 32618; begin Result := S; for I := 1 to Length(S) do begin Result := char(byte(S) xor (Key shr 8)); Key := (byte(Result) + Key) * C1 + C2; end; end; function DecryptStr(const S: String; Key: Word): String; var I: Integer; const C1 = 53761; C2 = 32618; begin Result := S; for I := 1 to Length(S) do begin Result := char(byte(S) xor (Key shr 8));
  23. Thanks. One more thing - How do I automatically scroll to the bottom of the W3IFrameHtmlElement1 after loading content? I have tried W3IFrameHTMLElement1.ScrollInfo.ScrollTo(0, W3IFrameHTMLElement1.ScrollInfo.ScrollHeight); ​but it does not respond.
  • Create New...