Jump to content

gerhard.kimmeringer

uniGUI Subscriber
  • Posts

    101
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by gerhard.kimmeringer

  1. I have test it with these components:

    http://websockets.esegece.com/

     

    The Server is only a component.

     

    In Servermodule -Customfiles i add this line:

    http://127.0.0.1:12345/sgcWebSockets.js

    In Mainform SCRIPT add the script

     

    <script>
    var socket = new sgcWebSocket('ws://127.0.0.1:12345');

    socket.on('open', function(event) { console.log('OPEN'); });
    socket.on('close', function(event) { ajaxRequest(MainForm.window,'Closed', []); });
    socket.on('error', function(event) { ajaxRequest(MainForm.window,event.message, []); });
    socket.on('message', function(event) { ajaxRequest(MainForm.window,event.message, []); });

    </script>

     

    Now i get the event.message in Mainform OnAjaxEvent

     

    Thats all, it works very well, hope it helps.

    • Upvote 3
  2. And how i do this with Unimdbgrid on mobile devices?

     

    I have test it with OnScreenResize of Form:

    if AWidth>(UnimDBGrid1.Columns[0].Width+UnimDBGrid1.Columns[1].Width+Unimdbgrid1.Columns[2].Width+Unimdbgrid1.Columns[3].Width) then
    UnimDBGrid1.Columns[1].Width:=AWidth-(UnimDBGrid1.Columns[0].Width+Unimdbgrid1.Columns[2].Width+Unimdbgrid1.Columns[3].Width);

    But if i do that i have 8 Columns, all twice, maybe it is a error in UnimDBGRid..

  3. Hi and thanks,

     

    for me [###url###] bring only the url, not the paramaters. I have try

    it only in standalone mode. Is it possible that is different with IIS?

     

    It is importent because each session have different parameters.

  4. I think this is the same error

     

    http://forums.unigui.com/index.php?/topic/1993-how-to-download-a-file-with-chiness-in-dll-mode/?hl=sendfile

     

    eg UniSession.SendFile('d:\oa\abc.doc', abc.doc); in exe mode ok
    UniSession.SendFile('d:\办公自动化\文档.doc', abc.doc); in exe mode ok
    but UniSession.SendFile('d:\oa\abc.doc', abc.doc); in dll mode ok
    UniSession.SendFile('d:\办公自动化\文档.doc', abc.doc); in dll mode no

     

    Logged #1354

  5. Hi all,

     

    If i download a file with german characters
    like ä,ö,ü,Ä,Ö,Ü,ß we don't get the download.

    In Standalone mode it is ok, in ISAPE Mode the
    generation of temporary file in cache folder is fault.

    For now i must change these characters in others
    the it works but this isn't the right way.

    What can i do? Is this a error in UNIGUI or
    this are settings in IIS?

     

  6. Change the Main Program

     

    {*$define UNIGUI_VCL} // Comment out this line to turn this project into an ISAPI module


    {$ifndef UNIGUI_VCL}
    library
    {$else}
    program
    {$endif}

     

     

    {$ifndef UNIGUI_VCL}
    exports
      GetExtensionVersion,
      HttpExtensionProc,
      TerminateExtension;
    {$endif}

    begin
    {$ifdef UNIGUI_VCL}
      Application.Initialize;
      TUniServerModule.Create(Application);
      Application.Run;
    {$endif}
    end.

×
×
  • Create New...