erich.wanker Posted June 4, 2014 Posted June 4, 2014 hi, i want to change the background color of differnt pages in a uniURLFrame... i tryed out: procedure Ttestweppage.UniURLFrame1FrameLoaded(Sender: TObject); begin UniSession.AddJS(UniURLFrame1.JSName+'.contentDocument.body.style.background = #ffffff;'); UniSession.AddJS(UniURLFrame1.JSName+'.contentDocument.body.style.background-image:none = none;'); end; ..but doesn´t work Has anyone a tipp ? ThanX Erich Quote
Sherzod Posted June 4, 2014 Posted June 4, 2014 Hi Erich. Try: UniSession.AddJS(UniURLFrame1.JSName+'.body.el.setStyle({background: "#ffffff"});'); Best regards. Quote
erich.wanker Posted June 4, 2014 Author Posted June 4, 2014 Hello Del Dev thanx for suggestion .. i tryed out - but didn´t work ... i dont know if the included page is the problem .. the included page has this definition according chrome-dev-tools: body { background-color: #E1E1E1; background-position: top center; background-repeat: repeat-x; background-image:url(....) } . Quote
Sherzod Posted July 30, 2021 Posted July 30, 2021 24 minutes ago, Daha Software said: Any solution? Hello, Please describe your case in more detail. Quote
SISBLU Software Posted August 2, 2021 Posted August 2, 2021 uniURLFrame background color Not work Quote
Sherzod Posted August 2, 2021 Posted August 2, 2021 17 minutes ago, Daha Software said: uniURLFrame background color Not work It is quite possible that it will not work. What do you upload there? Quote
SISBLU Software Posted August 2, 2021 Posted August 2, 2021 OK... I'm printing an HTML page... Using uniURLFrame . This function works when viewing PDF, but HTML does not work... UniURLFrame1.URL :=UniMainModule.AUrlPrint + '#page=1&zoom=150'; Quote
Sherzod Posted August 2, 2021 Posted August 2, 2021 Ok. Do you have a simple testcase to check? 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.