Jump to content

Recommended Posts

Posted

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";' );

 

  • emin changed the title to Change htmlmemo content at runtime by id
Posted

This code works when I use unihtmlframe instead. 

Quote

unihtmlframe1.JSInterface.JSCode('document.getElementById("yabanci-yeni-police").innerHTML = "Yeni poliçe (4)";');

 

Posted

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.

Posted
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?

Posted
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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...