Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Oct 2007
    Location
    HoChiMinh
    Posts
    69

    How to change the highlight color in stockList demo code?

    Hi all,
    In StockList Demo code (file "index.html"), in function formatValues(), i don't know how to change the highlight color?

    ----
    function formatValues(item, itemUpdate) {
    ...
    //choose the backgroundColor
    var backC = (item % 2 == 1) ? "#eeeeee" : "#ddddee";
    var backH = itemUpdate.getServerValue(14);
    itemUpdate.setRowAttribute(backH,backC,"backgroundColor"); --> how to re-defined backgroundColor?

    //choose the "change" field stylesheet
    var newChng;
    if ((newChng = itemUpdate.getFormattedValue(3)) != null)
    {
    var hotTxtCol = (newChng.charAt(0) == '-') ? "#dd0000" : "#009900";
    itemUpdate.setAttribute(3,"black",hotTxtCol,"color ");
    itemUpdate.setAttribute(3,"bold","bold","fontWeigh t");
    }

    ...
    --------
    Can anybody help me?

  2. #2
    Member
    Join Date
    Nov 2007
    Location
    VN
    Posts
    12

    Talking

    thì thay mầu mà ông thích vào backH & backC
    backH - Hilight - biến đổi xanh đỏ tùy vào demo up & down
    backC - Color - chẵn là #ddddee, lẻ là #eeeeee
    backH sau khoảng thời gian SetHotToCold thì sang backC
    ================================================== ===
    nè trao đổi tý, app ông có bị treo khi đóng browser không, nếu ko thì share kinh nghiệm đi cho Fair-Play
    ah, bệnh này chỉ xảy ra khi subcribe khối lượng item lớn, ít thì normal

  3. #3
    Senior Member
    Join Date
    Oct 2007
    Location
    HoChiMinh
    Posts
    69
    I know about backH, backC. but I mean (see picture below)


    Here my demo site :
    http://210.245.113.226:8080/priceonline/hose.html

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hello, unfortunately I can't see your demo.
    Btw, do you mean how to set a cold color that is transparent? Just set the background color as "transparent".

    Let me know about.

  5. #5
    Senior Member
    Join Date
    Oct 2007
    Location
    HoChiMinh
    Posts
    69
    Thanks Mone. I did it. U can see my demo from 8:30 Am to 11:00 AM (GMT +7), its still underconstruction.

 

 

Similar Threads

  1. Stocklist JMS demo with WebSphere MQ
    By sharathbabuk in forum General
    Replies: 8
    Last Post: July 30th, 2010, 04:18 PM
  2. Replies: 8
    Last Post: March 25th, 2010, 10:02 AM
  3. Replies: 1
    Last Post: November 2nd, 2009, 05:55 PM
  4. Replies: 29
    Last Post: July 14th, 2009, 10:57 AM
  5. Interaction demo source code
    By sarbao in forum General
    Replies: 1
    Last Post: April 16th, 2009, 09:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 09:25 PM.