Jump to content

RobertoLopes

uniGUI Subscriber
  • Posts

    123
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

RobertoLopes's Achievements

Active Member

Active Member (3/4)

6

Reputation

  1. So. I found a Solution. Not the best but I think that's the only available. I managed to send an ajax event to my application whenever the user is playing a media on the conversation (video or audio) and while the media is playing I am putting the new messages on a queue so when the media stops playing I insert the newly arrived messages and scroll down. If anyone found a better solution for this, please let me know. Here is the code I inject when a audio message arrives data = "<audio id="+iid+" src=\"data:audio/" + ext.LowerCase() + ";base64, " + b64 + "\" width=\"90%\" controls>" + fnameOnly + "</audio>" data += "<script> let aud = document.getElementById(\""+iid+"\");"; data += "aud.onplaying = function() { ajaxRequest("+compName+", \"MediaPlaying\",[]); };"; data += "aud.onended = function() { ajaxRequest("+compName+", \"MediaEnded\",[]);};"; data += "aud.onpause = function() { ajaxRequest("+compName+", \"MediaPaused\",[]);};"; data += "</script>"; iid is generated by CreateGUID.
  2. Yes I managed to do that but I found the real issue. On the HTMLFrame component (HTMLMemo as well) avery time you add a line, it reloads the entire component so the media that's being pleyed is restarted. So no mtter what I do as soon and a HTMLComponent.add is executed, the component is reloaded. I have tried Append and Add funcions. Is there a way to simply add a line without reload the entire html document ?
  3. I simply cannot do that for a bunch of reasons. Imagine a Contact Center agent who answers 20 simultaneous chats to have to scroll down every time a message arrives. It's just not how they are used to and it's not like any other chat solution works. So I have to find a solution.
  4. Let me clear . We have a chat (Whatsapp like) software where the users can send messages and media so, if I am a user of that system I receive a message and use the above code to scroll to the end of the HTML Frame. But, If i receive a video and play on the page without a pupoup I don't want to keep scrooling down if I receive new messages. Imagine that you are on WhatsappWeb and scroll up to view a video sent yesterday and the same person send's you a message. You cannot scroll down on that case.
  5. Hat's usefull but. How can I know that I am NOT on the bottom already ? I ask because I don't want to scroll to the bottom if the user is (for example) seeing a video on the middle of the document.
  6. YEs it works BUT. If the content is a video and the customer is watching the video I would no lilke to scroll to bottom. So to make it short, I only want to scroll to bottom IF the scroll bar is currently at the bottom before the new content arrives. How can I di that ?
  7. Still no cell alignment on stringgrid !!!! Why ? I cannot believe this.
  8. Forget it. It works. Thanks my friend. You really helped allot !
  9. How can I do this in C++ ? Those '[' are invalid on C++. Any clues ?
  10. Hello guys. I am trying to scroll a TUniHTMLFrame to the bottom for a chat application but nothing that I have tried works. With the TUniHTMLMemo this works: setTimeout(function(){" + spHTML->JSName + ".iframeEl.dom.contentWindow.scrollTo(0," + spHTML->JSName + ".iframeEl.dom.contentWindow.document.body.scrollHeight);},100);console.log('Scroll Executado...'); With TUniHTMLFrame it does not work neither this: scroll->JSName+".getTargetEl().scrollTo('bottom');console.log('Scroll Executado...');"; Can anyone help m e?
  11. I want to send a message from parent to iframe and vice versa .
  12. BY the way. Everytime you change the parameter do not forget to recycle the IIS app pool or restart your service (in case you use Hyperserver as a windows service).
  13. We have an IIS Cluster on cloud with 4 servers plus 2 database servers. Running Hyperserver . (I cannot wait to see the Hyperserver Farm running).
×
×
  • Create New...