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
Sherzod Posted June 4, 2014 Posted June 4, 2014 Hi Erich. Try: UniSession.AddJS(UniURLFrame1.JSName+'.body.el.setStyle({background: "#ffffff"});'); Best regards.
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(....) } .
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.
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?
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';
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now