[CLOSED] Script error on page with tooltip and master page

  1. #1

    [CLOSED] Script error on page with tooltip and master page

    Hi,

    I have a great problem with tooltip on master page. On masterpage is a grid with an tooltip on each cell in a colum. If i move up and down with the mouse after a short time I will get this error: Unresponsive Script Warning.
    The behavior is the same in Firefox and IE.
    If I use the grid with the tooltip without masterpage it works.
    Did you know anything about this problem.

    Kind regards
    Elke
    Last edited by Daniil; Mar 04, 2013 at 12:30 PM. Reason: [CLOSED]
  2. #2
    I guess that problem can be related with ID
    If master page is used then widgets ID doesn't equal ClientID (we use ClientID on the client side)
    For example, if you use in the javascript code
    App.Panel1
    then can be a problem because Panel1 is not ClientID if master page is used

    Solution: use #{} syntax (if script on the page) or set IDMode="Static" for required widget
  3. #3
    Quote Originally Posted by Vladimir View Post
    I guess that problem can be related with ID
    If master page is used then widgets ID doesn't equal ClientID (we use ClientID on the client side)
    For example, if you use in the javascript code
    App.Panel1
    then can be a problem because Panel1 is not ClientID if master page is used

    Solution: use #{} syntax (if script on the page) or set IDMode="Static" for required widget



    yes, I use #{} syntax

    and my script is:

      var showPermitGridToolTip = function (toolTip, grid, eventstore, body) {
            var view = grid.getView();
            var rowIndex = view.findItemByChild(toolTip.triggerElement).viewIndex;
            var column = view.getHeaderByCell(toolTip.triggerElement);
            if (column != undefined) {
                var fieldName = column.dataIndex;
                var store = eventstore;
                if (isDashboard != undefined && isDashboard != false) {
                    if (fieldName == "Provider") {
                        var record = store.getAt(rowIndex);
                        body.dom.innerHTML = GetText(record);
                    }
                    else if (fieldName == "Requestor") {
                        var record = store.getAt(rowIndex);
                        body.dom.innerHTML = GetText(record);  //get Html from record
                    }
                    else {
                        toolTip.hide();
                    }
    
                }
            }
         return false;
        };
    Kind regards
    Elke
  4. #4
    Please provide runable sample reproduces the issue

Similar Threads

  1. Replies: 1
    Last Post: Sep 08, 2013, 5:10 AM
  2. Replies: 0
    Last Post: Jul 30, 2012, 10:39 AM
  3. Replies: 2
    Last Post: Feb 29, 2012, 6:26 PM
  4. Replies: 4
    Last Post: Feb 13, 2012, 2:21 PM
  5. Replies: 2
    Last Post: May 05, 2010, 10:23 AM

Posting Permissions