Jump to content

donlego

uniGUI Subscriber
  • Posts

    231
  • Joined

  • Last visited

Posts posted by donlego

  1. actually a local url, just make a test if it's an external domain for tes the funcion

       FUniUrlFrame.ClientEvents.ExtEvents.Add('frameload = function frameload(sender, frame, eOpts){  sender.iframe.contentWindow.window.oncontextmenu = function(){return false}}');

  2. 2 minutes ago, Sherzod said:

    FUniUrlFrame.ClientEvents.ExtEvents.Add('frameload = function frameload(sender, frame, eOpts){...

          FUniUrlFrame.ClientEvents.ExtEvents.Add('frameload = function frameload(sender, frame, eOpts){  sender.iframe.contentWindow.window.oncontextmenu = function(){return false}}');

    the code is work but right click on frame is show/active

  3. 20 minutes ago, Sherzod said:

    For example using ClientEvents.

    Can you make a simple testcase to check?

          FUniUrlFrame := TUniURLFrame.Create(TabSheetNew);
          FUniUrlFrame.Name := Name + '_frame';

          FUniUrlFrame.Parent := TabSheetNew;
          FUniUrlFrame.Align := alClient;

          FUniUrlFrame.OnFrameLoaded := UNIFRAME_LOADED;
          FUniUrlFrame.ScreenMask.Target := FUniUrlFrame;
          FUniUrlFrame.ScreenMask.Enabled := true;
          FUniUrlFrame.URL := report_url;

       

       FUniUrlFrame.ClientEvents.ExtEvents.Add('frameload(sender, frame, eOpts){  sender.iframe.contentWindow.window.oncontextmenu = function(){return false}}');

    up raise error on runtime

    image.png.bdc1b4c3b9c54c3b8fb9fe05bd6536cf.png

     

  4. On 6/1/2016 at 3:11 AM, Sherzod said:

    Hi,

     

    Can you try this ?!:

    
    function frameload(sender, frame, eOpts)
    {
      sender.hideMask();
      sender.iframe.contentWindow.window.oncontextmenu = function(){
        return false
      }
    }

    Best regards.

    work on chrome , firefox fail

    and how did put the event if the uniurlframe is runtime create

     

     

  5. how to add uniclient event on runtime ?
     

    Quote

     

    class procedure PlayWIthform.SET_ICON_COMPONENT(aform:tuniform);
    var i:integer;
    var after_render_Event:string ;

    begin
    //PlayWIthMessage.Run('aa','xx');
    after_render_Event:= 'afterrender=function afterrender(sender, eOpts)  { '+
    'var me=sender; '+
     '   me.inputEl.setStyle("background", "none");'+
     '   me.triggerCell.setStyle("background", "none");'+
     '   me.inputWrap.setStyle("border-right-width", "0");'+
     '   me.triggerCell.setStyle("border-right-width", "1px");'+
     '   me.triggerCell.setStyle("border-top-width", "1px");    '+
     '   me.trigger.elements[0].setHtml("<i class=''fa fa-angle-down'' style=''font-size:1.8em; padding-right:5px''></i>"); '+
    '}';
     for i:= 0 to aform.ComponentCount -1 do
     begin
        if aform.Components is TUniDBLookupComboBox then
        (aform.Components as TUniDBLookupComboBox).ClientEvents.ExtEvents.Add(after_render_Event);

     end;

     

    i use this always error on the line

     '   me.trigger.elements[0].setHtml("<i class=''fa fa-angle-down'' style=''font-size:1.8em; padding-right:5px''></i>"); '+

  6. hello ,

    i have app with every cust have diffrent cust id

    current :

    1.mydomain.com/?custid=abc

    2.mydomain.com/?custid=def

    now i have was create wildcard subdomain  for my server

    so my question is can i use htacces to make like this

    1.abc.mydomain.com

    2.def.mydomain.com

    and get the result like curent behaviour

    UniApplication.Parameters.Values['custid']

     

     

     

     

     

     

     

     

     

  7. 19 hours ago, Sherzod said:

    One possible solution I think.

    UniComboBox.ClientEvents.ExtEvents ->

    
    function afterrender(sender, eOpts) 
    {
        var me=sender;
        me.inputEl.setStyle('background', 'none');
        me.triggerCell.setStyle('background', 'none');
        me.inputWrap.setStyle('border-right-width', '0');
        me.triggerCell.setStyle('border-right-width', '1px');
        me.triggerCell.setStyle('border-top-width', '1px');
        me.triggerEl.elements[0].setHtml('<i class="fa fa-angle-down" style="font-size:1.8em; padding-right:5px"></i>');
    }

    comboTrigger.png.bba2f9a47a06002cc1f513d259bf8514.png

    it,s work, but @Sherzod

    can it just use css / or copy file  ?

    coz i have about more than  100 + form  need the style

×
×
  • Create New...