Jump to content
uniGUI Discussion Forums

freedowsRoO

uniGUI Subscriber
  • Content Count

    168
  • Joined

  • Last visited

Everything posted by freedowsRoO

  1. freedowsRoO

    ajaxCallback problem

    Sorry, it works but the problem continue =( The uniSession.SendFile still send a lot of files to save like if i had a loop im my function. I think the problem is not in the function, I think is some problem with the uniSession.SendFile command because in the second time that i click de button the Event is call just one time but de UniSession.SendFile keep send the file BEFORE the AjaxEvent be call in delphi. There is a way to clear the cache or buffer of the session? SendFile with clientEvents.rar
  2. freedowsRoO

    ajaxCallback problem

    Hello! How can i have sure that ajaxEvent finish the execution? I need to use a function after the ajaxEvent are processed. I'm triyng to use 'UniSession.SendFile()' in the event ajaxEvent but the application send more than one file to the client side, The first time that i click the button the application send 1 file per time, if i click the second time the application send 2 files and so on.... Is difficult to explain....
  3. freedowsRoO

    ajaxCallback problem

    Ok, almost there... What if i need to change the 'sender.id' for another component? I need to take a screenshot of a panel not of my button(sender).
  4. freedowsRoO

    ajaxCallback problem

    When i click the button i need to send to the clientEvents the JSID of the component that i want.
  5. freedowsRoO

    ajaxCallback problem

    Any object, i need to set there the object that i want to take the screeshot. How it works ? When the function was in the delphi click event i just use the code like: MyPanel.JsID or MyButton.JsID. How it workd now that i change my function to ClientEvents?
  6. freedowsRoO

    ajaxCallback problem

    A little question: Is this line correct? html2canvas(document.getElementById(PanelCentral.jsID) , { dpi: 144 } ) If i need to use another component there i just call de name of the component?
  7. freedowsRoO

    ajaxCallback problem

    Nice, I'm already trying to do that but without success... function click(sender, e, eOpts) { html2canvas(document.getElementById(PanelCentral.jsID) , { dpi: 144 } ).then( function(canvas) { '+ var ctx = canvas.getContext("2d"); ctx.webkitImageSmoothingEnabled = false; ctx.mozImageSmoothingEnabled = false; ctx.imageSmoothingEnabled = false; var myImage = canvas.toDataURL("image/jpeg,1.0"); ajaxRequest('#1', "getData", ["base64Data="+myImage]); } ); }
  8. freedowsRoO

    ajaxCallback problem

    up
  9. freedowsRoO

    ajaxCallback problem

    Yeh it is incomplete, i just made the example using the html2cavas with the ajaxrequest because the problem only show when i call de html2canvas function. In my main application i convert the base64 image and save on a PDF, after that i send the 'unisession.sendFile'. Just focus on the problem, i click one time in the button and the server send me 2 files do download just it. Thanks in advanced...
  10. freedowsRoO

    ajaxCallback problem

    Just click, wait the download finish and click again and reapeat. In the first time that you click the application will send 1 file to save, the second time the application will send two, the third time three and etc...
  11. freedowsRoO

    ajaxCallback problem

    I managed to reproduce the problem. The problem is when i call the html2canvas function but i don´t know how to fix it. To reproduce the problem, just click to 'send file' button more than one time. SendFile.rar
  12. freedowsRoO

    ajaxCallback problem

    Thanks for reply but i have only one ajaxevent. The server trigger the unissession.sendfile many times..
  13. freedowsRoO

    How to make a round corner for UnimPanel?

    Try this newPanel.ClientEvents.UniEvents.Add('beforeInit=function beforeInit(sender, config){sender.cls="YOURCSS CLASS";}')
  14. freedowsRoO

    ajaxCallback problem

    Sorry, i did not manage to reproduce them. The error occurs only in my application, i made a video to try to explain better. Note in the video that the application stops at breakpoint only once, but on the client appears to save the file many times. Video_1590223862_Trim.wmv
  15. freedowsRoO

    ajaxCallback problem

    duplicate
  16. freedowsRoO

    Print Screen

    How i do that? I save just de base64 string in my database and after that i decode de base64 string to get the img.
  17. freedowsRoO

    Print Screen

    Hello friends! Is there any way to take print screen of a frame or panel? Thanks in advance
  18. freedowsRoO

    TUniPanel property floatable

    Look at the image, the float panel supossed to be over the normal panel. Float panel Align = AlRight Normal panel layout = Vbox and width/height = 100%
  19. freedowsRoO

    TUniPanel property floatable

    I tried to use Align = alRight but when the Floating propertie = TRUE did not work.
  20. freedowsRoO

    TUniPanel property floatable

    I set the propertie 'floating' of TUniPanel with True and need to align the panel like the propertie "Alig" to "AlRight". I made a CSS with "float: Right" but did not work.
  21. freedowsRoO

    TUniPanel property floatable

    Hi there! How can i align the panel on left or Right of the screen when the propertie 'floating' are activated?
  22. freedowsRoO

    Print Screen

    Nice! Thanks a lot!
  23. freedowsRoO

    Print Screen

    Hello, any ideia about this? How can i retrieve a variable in server side from this code? For example, if i want to get the 'uri' on server side, how i can do that? 2. MainForm.Script: function canvasSaveAs(uri, filename) { var link = document.createElement('a'); if (typeof link.download === 'string') { link.href = uri; link.download = filename; document.body.appendChild(link); link.click(); document.body.removeChild(link); } else { window.open(uri); } }
  24. freedowsRoO

    Highcharts Component

    Hello! You did an amazing work dude!!!! Thanks!! I have a little question, can you post some example of the solid gauge to us? Thanks a lot!
  25. freedowsRoO

    TUniSyntaxEdit Bug

    Hello! How are you?? The TUniSyntaxEdit has a bug that the layouconfig.width = 100% doesn't work.... I also tried to set the aligment = AlClient and doesn't work. Can you check this please?
×