Jump to content

Fred Montier

uniGUI Subscriber
  • Posts

    538
  • Joined

  • Last visited

  • Days Won

    83

Posts posted by Fred Montier

  1. Thanks but I'm already well familiar with that lib. I just don't see the need to use it. In fact, at current barcode readers (less then 20
     USD) , better buy ScanReader the losing time with that code.

    And already posted a solution  to that problem. Well, half solution. Need help on ajaxrequest. My example uses 9 barcodes formats on the fly and the Qrcode in a single scan without the need to use third part files, just JS. See link below

    http://forums.unigui.com/index.php?/topic/13227-ajaxrequest-wont-fire/

  2. Hi There...

    I also use Dbisam and there is a lot of issues that need to be addressed for it to work/adapt to uniGUI. And these issues do not  produce  the same behavior of other database such as those using Firedac or Zeos described on unigui's manual.

    1- Make the connection in your datamodule. Not in ServerModule or MainMondule.  I know that is against the unigui's manual instructions but trust me, they are not talking about Dbisam anyways. It never work for me using mainmodule to connect the database, servermodule is even worst.  There is a simple reason: Dbisam works generating name sessions to db connections , if set to AutoGenerate, you get some issues that I never found solutions. But if you set AutoGenetares in DataModule, "no problemo amigo". If you set fix session name, also no problems. But in MainModule, only works with fixed names.  But when the second user login in , you have violation at the name space level since dbisam uses session unique names per app and ignores dbisam "websession" handler.

    2- Dbisam generates session handlers per form (a new session at every form, does not matter if you gonna use it or not). That's is the difference. Whether you use the Tdbisamsession or not, they are always there. You can reuse other session from another form and there is no problems with it.

    3- Set the Session privatedir property to Server Temp Folder. That is paramount ! Of course that depends how you handle your temp queries (if disk). For large database, I strongly suggest that you use disk and save temp data to the temp dir.

    4- An Advice: Create a "main" datamodule where you connect and defines session privatedir (ops, privatedir, then connect/Open DB). Then declare the unit's name  in uses clause of other datamodule for reuse. This way you won't have to reopen the db at every form and the same session  can be used in every table or query. That makes everything "smooth and operational". I usually do that with the form uses in the login form. Then it becomes my MainDataModule. You should do it at the OnCreate event in the "MainDataModule" form and then forget about in other datamodule since the db is already open and configured.

    DBisam session is not related to uniGUI (web)session. But one messes up with the other, hence the problems.

     

     


  3. As you may have noticed it is not possible to change your page's FavIcon (ServerModule.FavIcon) at runtime without a page reload.

    This example changes the FavIcon and is great for notification as it occurs on sites like Twitter, FaceBook, etc ...

    JS has been improved and now avoids caching problems on change and supports use of PNG on the fly. And as a bonus, how to change the page title.

    Have a good time

    Visit http://www.unigui.com.br for project packs, exclusive material, demos, examples, books, and our full-fledged RDP course.
    Several other examples also available for free from our official website.

    -----------------------------------------------------------------------------------------

    Como você pode ter percebido não é possivel mudar o FavIcon de sua página (ServerModule.FavIcon) em tempo de execução sem um reload da página.

    Este exemplo mudar o FavIcon e é ótimo para notificação como ocorre em sites como Twitter, FaceBook, etc...

    O JS foi melhorado e agora evita problemas de cache na mudança e suporta uso d PNG na hora. E como bonus, como mudar o titulo da página.

    Divirta-se

     

     

     

     

    www.unigui.com.br-uniGUIDoesFavIcon.gif

    Project available at https://www.unigui.express

    • Like 3
    • Thanks 1
    • Upvote 2
  4. Hi Folks

    This example further enhanced by Sherzod shows how to do some print-screen selecting components like Panel etc.

    Solution Provided By Sherzod at  
    http://forums.unigui.com/index.php?/topic/13073-print-screen/


    Here is the new example with more details
    Please download at https://t.me/uniguiexpress

    PS: To Forum Admins: I was not able to upload the source-code file to the forum and it only was 1 MB. A warning message said I only had 200kb remaining.
    Hence the external link.

    Do I have to delete other examples posted here ? Any solution about it ?

     

    uniGUI Does PrintScreen.jpg

  5. I'm developing a new BarCode scanner with support to QrCode and BarCode... Any help is welcome:

    Have run into some issues with ajaxRequest not firing.

    About equipment, there are a lot of scanner that can read both codes formats (QrCode 2D and BarCode 1D) for less that $ 20,00. So, is more like a exercise or only if you want to run your inventory with just a smartphone and refuses to acquire a real scanner. 

    BarCodeScanner.rar

  6. I have done a lot of code using ajaxRequest. The QrCode example does exactly that:

    If I place the code in a URLFrame it won't load the JS library. Have tried a lot of options. If I use the urlFrame, it never fires ajaxRequest. I even put an alert() before  ajaxRequest and it run flawless with the data I want to return. Note that the JS library has 4 examples using JQuery, plain and simple code etc. None of them works.

    The JS Library work fine in URLFrame and HtmlFrame. Reads all the codes and appends to the body. I want to replace that with an ajaxRequest to receive properly the code and put it to some use.

    I have ran over the same problems in a lot of JS library code.  Not everything can be adapted to uniGUI regardless how I initiate the ajaxRequest. Is there any particular condition where it does not work ?

    And yes, already read manual thoroughly, searched the forum etc. A lot of my examples uses ajaxRequest and lot more I have abandoned because there is no work around.

    This code is very important (to me and the community) because is the only JS example that can read QrCode  and 9 others Barcodes. All solution in one code without third party utils or dlls.

    So, thanks in advance.

    PS: Yes, my intention is to post here to uniGUI users.

  7. HI...

    Having problem on firing ajaxRequest back to form OnAjaxEvent or uniURLFrame OnAjaxEvent.

    It seams to have some interference with the JS library since I have a very similar code and works all right but using uniHTMLFrame. Problem is that uniHTMLFrame there is no way I can start the lib to run and open device.

    Have tried MainForm.htmlcam, MainForm.form, MainForm.windows etc... changed params name whatever, afterscript, external js file, loadlibrary ... 

    Any ideas ?

    BarCodeScanner.rar

  8. Hi my Friend...

    Soon I will post it. But it only works in Chrome. It is the only browser to support it at this time. But is very impressive what they have done and support to a lot of language. Can even understand my broken english.

    I'm making a sort of Journal of mine dictating on the fly saving to text. Then I will turn it into a full working example, more easy to anyone.

    But first I have two more projects queued to the community.

    Well, It is not big deal using uniGUI...  kudos to Google team.

    c'ya

    • Like 1
  9. Just to explain ...

    I know that taking a picture is not complicated issue with uniGUI. By the way, it's quite simple. But everyday people ask me how to do it. So I posted this example for a quick way to answer everyone.

    Soon I will also put examples how-to do sound and video also.

    So, don't criticize me for such a silly example. Some are still learning and need help. I'm instructor and teacher.

    Education, training, writing are my  expertise.

    • Like 3
  10. uniGUI DOES Digital Signature 2 (Desktop & Mobile)

    New version of our example digital signature with RESET button to reset coordinates in case of screen repositioning or factor change (expansion, decrease etc.).

    This version was is already suitable for Desktop (I'm not sure what anyone want it for, but anyways...) and for mobile.

    I left the RESET method separately (button) to decide whether to apply to any event or leave it as it is.

    Improved code and removal of some unnecessary things. JS library updated to the latest version. See the JS code if you want to change the type of writing or color displayed.

    Enjoy...

    PS: Please, download problems, DO report it to the uniGUI Staff. I don't have controls over files posted here and I'm, not going to provide alternative links to non-subscribers (or any one) since is here already and working.
    PS 2: Tested with Chrome and Firefox latest version in Desktop and Mobile. Should not work in IE or Safari (neither bother to test on it).

    DigitalSignature2.gif

     

    Project available only in the pack Silver at https://unigui.express

    • Like 2
  11. Soon speech recognition... just finished. Now I can make my journal on-line, encrypt on the fly, dictate my books,  without recording sound, download files etc, etc... really amazing.

    All credits on Speech Recognition goes to Google engine. Voice synthesis is no big deal nowadays. Next week I put on-line. First, there is the Signature for mobile.

    That's one of those thing I already tried to do with Intraweb and never worked out.

    • Like 3
  12. uniGUI DOES SPEECH SYNTHESIS

    Give a voice to your interface !

    The standard Windows phrase is getting better and better. The same goes with the voices of Google services. This example I did demonstrates how to implement voice usage in both your desktop and mobile applications. I highly recommend using Chrome (or Firefox) because it already provides internal voices from his network, such as the translator.

    Works on all newer browsers except IExplorer, (Retired) Opera (Maybe) etc. There are more voices available using Chrome but you can also download more voices and install on your Windows.

    Visit https://t.me/uniguiBrazil Portuguese.
    https://t.me/uniguiexpress English


    PS: all parameters set to default. See the original HTML example to get range values. But I don't think you will need alter it. So, ignore the volume, rate and pitch controls in the example provided here you still can change in the function I created, thou. See source code and original HTML. Note, its pure uniGUI and JS. You don't need uniHTML/URL Frame or original HTML/JS to run it.

    PS: Next week I'll post uniGUI DOES SPEECH RECOGNITION, stay tuned !

    For compatibility and other issues:
    See https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis

    uniGUI_speech_synthesis.png

    Project available at https://unigui.express

    • Like 5
    • Upvote 1
  13. uniGUI does TinyMCE (revisited)

    After checking several editor examples and the promise of the full html editor has not yet appeared in uniGUI, check out this solution published in 2016 by an uniGUI contributor.

    I recompiled and checked the features, still working without problem in the new versions.

    So if you need to add an html editor and save the text code, this is a really good solution.

    Author: Stanislav Panteleev
    http://digital-flame.ru/author/stanislav_panteleev/

    http://digital-flame.ru/2016/02/10/unigui-tinymce-dobavlyaem-moshhnyiy-tekstovyiy-redaktor/

    FYI: I know this was posted here before.

    KPT-EVT9.png

    Project available for purchase at unigui.express

     

    • Like 2
    • Upvote 3
  14. English:
    This example shows how to copy text using the clipboard but on the client side and not using the application memory area on the server.

    In other words, it's how you should do the "copy and paste" in uniGUI.


    Portuguese:
    Este exemplo mostra como copiar texto usando o clipboard mas no client-side e não usando a área de memória do aplicativo no servidor.

    Em outras palavras, é como se deve fazer o "copiar e colar" no uniGUI.


    Thanks to Sherzod Code:

    http://forums.unigui.com/index.php?/topic/6116-copy-paste-selected-text-in-tunimemo/&tab=comments#comment-31802

    Moderator/ Staff: http://forums.unigui.com/index.php?/profile/906-sherzod/

    Also, third party code from the web.

     

    uniGUICOPYTEXT.png

    Project available at https://unigui.express

    • Like 5
    • Upvote 2
×
×
  • Create New...