Jump to content
uniGUI Discussion Forums

Abaksoft

uniGUI Subscriber
  • Content Count

    715
  • Joined

  • Last visited

  • Days Won

    40

Abaksoft last won the day on April 20

Abaksoft had the most liked content!

Community Reputation

170 Excellent

About Abaksoft

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    http://www.abaksoft.net

Profile Information

  • Gender
    Male
  • Location
    Algeria

Recent Profile Visitors

773 profile views
  1. Abaksoft

    How can I access Local Storage

    Hello Friends, Finally, a big thx to Hayri ASLAN, who corrected my code. Thank you to everyone who participated in this topic : Paul, Sherzod and Hayri For those who are interested //********************************************************************** // METHODE without define (JavaScript Code) on Main > Script // Big Thx to Hayri ASLAN [Unigui Forum 24/04/2019] // Benefict to Use LocalStorage instead of Cookies : // 10 Mo Persistent data on Client Side (even with Refresh browser) // Only strings are store //********************************************************************** //1. To Set the Key 'K1' procedure TMainForm.UniButton1Click(Sender: TObject); var st:string; begin st:=UniEdit1.Text; UniButton1.JSInterface.JSCallGlobal('localStorage.setItem', ['K1', st] ); // Key , Value (always string) end; //2. To retreive Value of 'K1' on UniEdit2 procedure TMainForm.UniButton2Click(Sender: TObject); begin with UniEdit2.JSInterface do JSCall('setValue', [jsstatement('localStorage.getItem("K1")')]); // important : Key must be Quoted " " end; //3. To remove Key 'K1' procedure TMainForm.UniButton3Click(Sender: TObject); begin UniButton3.JSInterface.JSCallGlobal('localStorage.removeItem', ['K1']); end; All the Best LocalStorage2.zip
  2. Abaksoft

    How can I access Local Storage

    OK thx
  3. Abaksoft

    How can I access Local Storage

    Thank you Sherzod for the fast reply, But to display the value on UniEdit1.Text Nothing !?
  4. Abaksoft

    How can I access Local Storage

    Apologize for my JavaScript ignorance 1. I define On Main : Script function setItem(key, value) { localStorage.setItem(key, value); }; function getItem(key) { return localStorage.getItem(key); }; 2. Then to Set / Get : but Not work !? // To Set the Key "lastname" procedure TMainForm.UniButton1Click(Sender: TObject); begin UniButton1.JSInterface.JSCallGlobal('setItem', ['"lastname"', '"Smith"'] ); end; // To retreive Value of "lastname" on UniEdit1 procedure TMainForm.UniButton2Click(Sender: TObject); begin UniEdit1.JSInterface.JSCallGlobal('getItem', ['"lastname"']); end; // To remove Key procedure TMainForm.UniButton3Click(Sender: TObject); begin UniButton3.JSInterface.JSCallGlobal('localStorage.removeItem', ['"lastname"']); end; Any idea Sherzod ? Thx
  5. Abaksoft

    How can I access Local Storage

    Thank you Hayri ASLAN, Interesting ! But where in Delphi, do we put this ? A simple Example please : Unibutton1 --> Click --> Set UniButton2 --> Click --> Get UniButton3 --> Click --> Remove Best regards
  6. Abaksoft

    How can I access Local Storage

    Hayri ASLAN is specialized in JavaScript and can help you on LocalStorage.. Regards.
  7. Abaksoft

    How can I access Local Storage

    Hello Paul, • A good documentation with javascript examples to use localStorage : https://diveintohtml5.info/storage.html • But if you are trying to get or set files from client side HD, there is no conventional way to do it (web security).
  8. Abaksoft

    Application Freezing

    OK. This could be the cause : When searching on the DBGrid, some records contain characters that do not belong to the Set characters of the db. Change your default Character Set to UTF 8 could be a solution (but this will increase your DB file size). Regards.
  9. Abaksoft

    Application Freezing

    Hello, This reminds me the Default Character set in the Database. Are you using UTF 8 ?
  10. Abaksoft

    Screenmask

    Try this. Regards... ScreenMask.zip
  11. Abaksoft

    Is there a need for a (structured) uniGui WIKI?

    Good idea Mierlp +100
  12. Abaksoft

    Hyperserver appcrash

    Hello, 1. Did you install on the server : - the Runtime exe 1495 - your RDBM 2. HyperServer requires the program to be lauch as STANDALONE application, not as Service. Please check. 3. Sometimes, your SQL queries work fine in your computer but not on an other computer. The SUSPECT is Regional Parameters (format date etc...) .This will crash your application.
  13. Abaksoft

    UniGui_ 1.90.0.1495 Blank Page on windows server 2016

    Hello Ammar, I have no problem with the latest 1495. Try to restart your server. EDIT : - Windows Server 2016 = No problem - Windows Server 2016 VM = not tested
  14. Abaksoft

    EMB interest for WEB development

    Dear Friends, Unigui is in the sights http://s608.t.en25.com/e/es?s=608&e=3048356&elqTrackId=65d0dc3c5cdd4756be52277591b686f0&elq=52d51d2aac2e4edb9f52a0dc882de683&elqaid=29625&elqat=1
×