on 06-15-2015 8:14 AM
Hi guys,
I want to change my string when button then refresh html body control.
I use below code but I can't change string content.
How can i do this.
Thanks for help.
Burak Oral
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You never change the value of variable 'dynamicString' with the changed 'found/found2' variables, that's why it appears as if it wasn't changed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Euh, yeah? How about set the text not on a variable (which isn't visible of course) but on a DOM object
This should work:
var dynamicString = '<div id="P_STRING">String 1</div> ----------- <div id="P_STRING2">String 2</div>';
var oButton = new sap.ui.commons.Button({
text : "Change",
press : function(){
$("#P_STRING").text("Changed String 1");
$("#P_STRING2").text("Changed String 2");
}
});
Ok, if you are trying to manipulate generated HTML in the RichTextEditor control's "value" property, then I can more or less understand
However, in that case, I think a cleaner approach would be to extend the RichTextEditor itself, since that is the control that is responsible for any style/content changes anyway
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.