erich.wanker Posted June 4, 2014 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted June 4, 2014 Share Posted June 4, 2014 Hi Erich. Try: UniSession.AddJS(UniURLFrame1.JSName+'.body.el.setStyle({background: "#ffffff"});'); Best regards. Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted June 4, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
SISBLU Software Posted July 30, 2021 Share Posted July 30, 2021 Any solution? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 30, 2021 Share Posted July 30, 2021 24 minutes ago, Daha Software said: Any solution? Hello, Please describe your case in more detail. Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted August 2, 2021 Share Posted August 2, 2021 uniURLFrame background color Not work Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 2, 2021 Share 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 Link to comment Share on other sites More sharing options...
SISBLU Software Posted August 2, 2021 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted August 2, 2021 Share Posted August 2, 2021 Ok. Do you have a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
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.