Jump to content

irigsoft

uniGUI Subscriber
  • Posts

    1370
  • Joined

  • Last visited

  • Days Won

    22

Everything posted by irigsoft

  1. irigsoft

    execCommand

    Hello, try here: http://forums.unigui.com/index.php?/search/&q=clipboard&quick=1
  2. Hello, try this onServerSide SpeedButton.OnClick unISession.AddJS ('document.getElementById("' + YourComponent.JSId + '").style.background = "gray";');
  3. "Now the services are implemented in php and there is no problem to check whether the user entered the password or not", "I have several services and users can navigate between them and each time they start working on the login form,...but how do I make the login form invisible". Maybe You're right, but for me, this shows that the desire is to move from PHP to UniGui.
  4. I am not security expert but, If condition is: 1. user logged in one Unigui app 2. after login redirect to webservice 1 or webservice 2 or 3 then Yes. But if 1. user logged in one Unigui app 2. after login redirect to encryption server 3. after that redirect to inner webservice 1 then No necessary.
  5. not necessary, you can use encryption, even sending them as a parameter
  6. Hello, I looked for a solution and that was the first result, sorry if they are not correct. I assumed it was a paid solution, but I didn't look for details
  7. hello, here are some javascript functions: http://www.scanjs.com/scan/scannerjs/docs/html/scannerjs-javascript-guide.html https://stackoverflow.com/questions/3504231/how-can-i-trigger-a-scanner-from-a-browser
  8. look here: https://stackoverflow.com/questions/8155064/how-to-programmatically-empty-browser-cache
  9. Hello, If You googling for this: javascript read bitmap clipboard will find many examples. https://ourcodeworld.com/articles/read/491/how-to-retrieve-images-from-the-clipboard-with-javascript-in-the-browser this read clipboard data (with uniSession.addJS is simple) https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read You will get clipboard content from browser and try to show it in uniImage or uniCanvas
  10. Hello, this is my way: When user loged in (Button Click on LoginForm), and all authorization is OK, then clossing all other sessions with selected user ID (Name) uniMainModule public sUserName : String; //my custom procedure procedure CloseOtherSesionsWithUser (sesionUser : AnsiString); var I : Integer; U : TUniGUISession; begin Try UniServerModule.SessionManager.Sessions.Lock; for I :=UniServerModule.SessionManager.Sessions.SessionList.Count - 1 downto 0 do begin TRy U := UniServerModule.SessionManager.Sessions.SessionList[I]; //U.LockSession; // Check mainModule availability. Some sessions may not have a MainModule instance if U.UniMainModule <> nil then begin // Do not close my OWN Session if (UniApplication.UniSession.SessionID <> U.SessionId) AND ((U.UniMainModule as TUniMainModule).sUserName = sesionUser) then begin TRY //U.LockSession; //U.ReleaseSession; U.Terminate (StringReplace (uniServerModule.urlMessage,'[###message###]' ,'You have already loged in with this user: ' + sesionUser + '.' + '</br>Session is closed.' ,[]) ); FINALLY //U.UnBusy; END; end; end;//If U Except //on E:Exception do ShowMessage ('Close session ERR:' + E.Message); End; end;//for I Finally UniServerModule.SessionManager.Sessions.Unlock; End; end;
  11. Hello @Abaksoft, did You succeed with my test case.
  12. I am sorry i have changed my post. Please try to set color on Form.OnReady. I use addJS on OnButtonClick. (Form and all components are already created)
  13. Try to use this function on TForm.OnReady. Set Color after all components are created. I use this on OnButtonClick. (Form and all components are already created)
  14. Just use : uniSession.AddJS ('document.getElementById("' + YourComponent.jsID + '").style.background = "red";')
  15. Hello, why do you need this? What data will you change according to the time zone?
  16. Maybe is something simple but my knowledge help me just to integrate js function, I hope this will help to start.
  17. Hello again, I make some try and here is it. Project6.zip I use this like base: https://mozilla.github.io/pdf.js/ https://github.com/mozilla/pdf.js/blob/master/examples/learning/helloworld.html how to use it on uniHTMLFrame maybe @Sherzod will help here.
  18. Do you want to use only uniPDFFrame or is a combination of uniHTMLFrame and uniPDFFrame possible?
  19. Did You try this: https://github.com/scandel/pdfThumbnails or : https://stackoverflow.com/questions/29375233/generate-a-thumbnail-of-pdf-file-in-html or : https://www.codegrepper.com/code-examples/javascript/generate+thumbnail+of+pdf+using+pf+js or : https://github.com/mozilla/pdf.js#online-demo
  20. Yes it is. this code is my real code on version 1524. If You what try it without locking session.
  21. Hello @Norm, thank you for the feedback, I hope I was helpful
  22. @Abaksoft Here is it: Project5.zip Proposal from wilton_rad is useful too on client side.
×
×
  • Create New...