emin Posted February 27, 2025 Posted February 27, 2025 How can I change the text and font properties of a field that I assigned an id to in unihtmlmemo. I can change the entire content each time like unihtmlmemo.text=xxx, but instead I want to change only the relevant field. I get an error when I try like Quote UniSession.AddJS('document.getElementById("yabanci-yeni-police").style.color = "green";'); or UniSession.AddJS('document.getElementById("yabanci-yeni-police").innerHTML= "Hello";' ); Quote
emin Posted February 27, 2025 Author Posted February 27, 2025 This code works when I use unihtmlframe instead. Quote unihtmlframe1.JSInterface.JSCode('document.getElementById("yabanci-yeni-police").innerHTML = "Yeni poliçe (4)";'); Quote
Sherzod Posted February 27, 2025 Posted February 27, 2025 Hello, What exactly is inside UniHTMLMemo before you try to change it? Quote
emin Posted March 1, 2025 Author Posted March 1, 2025 I want to change any part of html by using element id like "'document.getElementById("yabanci-yeni-police").text='xxxx' Actually I can use unihtmlframe. What I really want to do is to have the content change responsively when the screen size changes. For this I create the html content outside and load it into the relevant area within the application. However, in the tests I have done, although the html page layoutconfig settings for both unihtmlframe and unihtmlmemo are completely responsive, there is no responsiveness when the form size changes. Quote
Sherzod Posted March 3, 2025 Posted March 3, 2025 On 3/1/2025 at 6:45 PM, emin said: I want to change any part of html by using element id OK. Could you provide an example of your UniHTMLMemo content? Quote
emin Posted March 3, 2025 Author Posted March 3, 2025 You can find test project attached. responsivetestproject.rar Quote
Sherzod Posted March 3, 2025 Posted March 3, 2025 6 hours ago, emin said: You can find test project attached. But you wanted to achieve this with UniHTMLMemo, didn't you? And I was expecting you to provide an example for this component. Quote
emin Posted March 3, 2025 Author Posted March 3, 2025 Yes. As I explained above, my goal is to create a fully responsive dashboard. So I first used unihtmlmemo, thinking it would be fully responsive. However, I saw that there was no difference between unihtmlmemo and unihtmlframe. As seen in the sample project, when the screen resolution changes, I want the html loaded in the content to look responsive as if it was opened from the same browser. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.