Skip to Content
avatar image
Former Member

iBrowser setBackgroundColor

Version 11.5

The Script Assistant indicates that there is a method to set the background color of a Browser object.

.getBrowserObject().setBackgroundColor("#FFFFFF");

Does this method actually exist? It is not in the help document and generates an error when I try it in java. I know I can set the Background color as a parameter in the applet, but can I set it dynamically?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Aug 16, 2008 at 05:14 PM

    Sue,

    There are a few helper methods for setting colors as string (meaning the html color string itself) but in most cases you'll need to use document.AppletName.createColor("#FFFFFF"); and then pass this color object into the setBackgroundColor() method.

    I also notice you are attempting to manipulate the iBrowser colors, but this applet does not give you complete control over colors and fonts, especially in drop down combo mode or list box mode. The applet rework in 12.1 will give you this control capability, so in the mean time with 11.5 you will have mixed control results.

    Regards,

    Jeremy

    Add comment
    10|10000 characters needed characters exceeded