Jump to content

tzal

uniGUI Subscriber
  • Posts

    13
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by tzal

  1. Dear uniGUI friends,
       i have a question:
     
    How would it be possible to integrate very simple REST type service with uniGUI application?
     
    Let's say I have existing uniGUI application on address:
    http://www.example.com/unigui_app.dll
    And I would want to add web service on this address:
    http://www.example.com/unigui_app.dll/rest

    Then I could call the web service like this:

    GET http://www.example.com/unigui_app.dll/rest?students=123 HTTP/1.1
    And into Delphi code I would get these parameters:
    Method:    GET
    Parameter: students
    Value:     123

    Thanks for any idea.

     

  2. I use this:

     

    procedure SetPanelRoundBorders(const APanel: TUniPanel; APixels: Integer = 5);
    begin
     APanel.ClientEvents.ExtEvents.Add
       ('OnAfterrender=function OnAfterrender(sender){' +
       'sender.body.applyStyles('#39'border-radius:' + IntToStr(APixels) +
       'px'#39');}');
    end;

  3. Is there a method to call to detect the type of browser?

    I need to determine if the request is coming from an ipad and if yes i need to redirect to a different location

    thanks..

     

    this project is fantastic!

    uses uniGUIApplication, ExtPascal;
    
     case UniSession.Browser of
       brIE: ;
       brFirefox: ;
       brChrome: ;
       brOpera: ;
       brSafari: ;
       brKonqueror: ;
       else // something else
     end;

×
×
  • Create New...