[CLOSED] change bodyStyle on panel in Javascript

  1. #1

    [CLOSED] change bodyStyle on panel in Javascript



    Hi
    I have a panel that has a bodystyle applied. I want to remove this bodystyle on a javascript
    i tried



    Panel1.bodyStyle = "";

    But the change does not reflect on the screen. Do i need to update the panel in som way?

    /Mikael
  2. #2

    RE: [CLOSED] change bodyStyle on panel in Javascript

    Hi Mikael,

    I don't think that removing styles is possible. You need to set new values instead old. Try use none for cancel css rule


    panel.body.applyStyles({color: 'none', border: 'none'})
    *
    panel.body.setStyle('color', 'none')
    *





    It is better to set class nad remove it when it is required. For example on rendering you can apply css style for body


    panel.body.addClass('myClass');

    and then remove it*
    panel.body.removeClass('myClass');
  3. #3

    RE: [CLOSED] change bodyStyle on panel in Javascript

    okay thanks for the info!

    /Mikael

Similar Threads

  1. [CLOSED] BodyStyle Transparent
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 25, 2012, 6:46 AM
  2. Window + BodyStyle IE7 bug
    By Markp11 in forum 1.x Help
    Replies: 3
    Last Post: Nov 18, 2011, 10:49 AM
  3. Replies: 8
    Last Post: Apr 01, 2010, 6:25 PM
  4. Replies: 0
    Last Post: Apr 04, 2009, 10:45 AM
  5. [CLOSED] Panel BodyStyle
    By jchau in forum 1.x Help
    Replies: 4
    Last Post: Nov 05, 2008, 11:52 AM

Posting Permissions