VolkovVitalD Posted May 19, 2025 Posted May 19, 2025 Hello! If you run this code: UniHTMLFrame1.HTML.Text := '\\'; Only one character will be inserted into the frame. I traced the code of the TUniCustomHTMLFrame class and the ConvertHTMLTxt function - everything is normal there. But when receiving such a string in the browser in the Update function of the module ext-all.js two slashes are converted into one. \f turned into an unprintable symbol. Quote
Sherzod Posted May 20, 2025 Posted May 20, 2025 Hello, 13 hours ago, VolkovVitalD said: UniHTMLFrame Would UniURLFrame be a suitable option in your case? Quote
VolkovVitalD Posted May 20, 2025 Author Posted May 20, 2025 TUniGenericControl is suitable for me. UniSession.AddJS('const range = document.createRange();'); UniSession.AddJS(Format('range.selectNode(document.getElementById("%s"));', [UniGenericControl1.Name])); UniSession.AddJS(Format('const fragment = range.createContextualFragment("%s");', [R])); UniSession.AddJS(Format('document.getElementById("%s").appendChild(fragment);', [UniGenericControl1.Name])); Thanks! 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.