Jump to content

Sherzod

Moderators
  • Posts

    19790
  • Joined

  • Last visited

  • Days Won

    643

Everything posted by Sherzod

  1. Sorry for late response. One possible solution: 1. UniEdit1... function keydown(sender, e, eOpts) { var customVar = ajaxRequest(sender, 'getCVar', {}, false).responseText; alert(parseInt(customVar) + 5); } 2. procedure TMainForm.UniEdit1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = 'getCVar' then begin // Instead of 10, "any variable"... UniSession.SendResponse(10.ToString()); end; end;
  2. Which theme are you using? How can we reproduce? Basically themes control many styles.
  3. Well, the replacePswCnt variable was not found on the client side...
  4. At this point you find out that the client is not sending the request for many reasons...
  5. Thanks for the update. Please clarify your question again. What does the component look like by default and what needs to be changed?
  6. This is a textarea, is this advisable, what do you think?
  7. Ok. Try simply use this solution for now: CustomCSS -> .x-textareafield textarea { line-height: normal !important; }
  8. Can you try this? UnimMemo1.JSInterface.JSProperty('textAlign', ['center'], 'setTextAlign'); //'left', 'center', 'right'
  9. procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UnimMemo1.JSInterface.JSConfig('textAlign', ['center']); //'left', 'center', 'right' end;
  10. Sherzod

    TUniPopupMenu

    One possible solution: 1. type TXPopupMenu = class(TUniPopupMenu) end; 2. OnReady event -> procedure TMainForm.UniFormReady(Sender: TObject); begin with TXPopupMenu(UniPopupMenu1).MenuControl.JSInterface do JSAddListener('afterrender', 'function(){this.items.sort(function(item1, item2) {return item1.text.localeCompare(item2.text)})}') end;
  11. Sherzod

    TUniPopupMenu

    Ok I will check.
  12. Sherzod

    TUniPopupMenu

    Hello, Sorry, what do you mean?
  13. It's completely impossible. I think you need to use a different approach.
  14. Hello, What problem are you facing at the moment?
  15. Hello, Sorry, I didn't really understand your question. But, your server will not be in hibernation, your web service will always receive events from the client side if they are able to send events, right?
  16. So you at least have a solution that asks for a password from the user, if I understood you correctly.
  17. Do you even manage to enter the password and open it?
  18. I modified the code. Move the code to the OnReady event, that's why I asked where you use the code... One possible solution: procedure TMainmForm.UnimFormReady(Sender: TObject); begin with UnimContainerPanel1 do begin JSInterface.JSCall('bodyElement.setStyle', ['background', 'url('+UnimImage1.CurrImgUrl+')']); end; end;
×
×
  • Create New...