in
Forums
Blogs
DevExpress.com
Client Center
Support Center
DevExpress Channel

Strange js error

Last post 12/2/2008 3:31 AM by Shogun Mizokunimito. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11/7/2008 12:48 PM

    Strange js error

     Hi,

    I'm experiencing strange js error in page where I've used AspxPopupControl, it's enough hardly describe all the scenario but the error seems involved when a resize event is raised from the popupcontrol.

    I try to put here some information but since it's not allowed to post any attachment I'm waiting for a your suggestion to share any files you need.

    Stack Trace

    > _aspxGetPositionElementOffset JScript
      _aspxPrepareClientPosForElement JScript
      JScript anonymous function JScript
      JScript anonymous function JScript
      JScript anonymous function JScript
      aspxPopupControlWindowResize JScript

    Code when exception is thrown

     function _aspxGetPositionElementOffset(element,isX){var curEl=element.offsetParent;var offset=0;var scroll=0;var position="";while(curEl!=null){var tagName=_aspxIsExists(curEl.tagName)?curEl.tagName.toLowerCase():"";if(tagName=="html"||tagName=="body")break;if(tagName!="td"&&tagName!="tr"){var style=_aspxGetCurrentStyle(curEl);if(style.position=="absolute"||style.position=="fixed"||style.position=="relative"){offset+=isX?curEl.offsetLeft:curEl.offsetTop;if(__aspxIE||__aspxOpera9||__aspxSafariMacOS)offset+=_aspxPxToInt(isX?style.borderLeftWidth:style.borderTopWidth);}}
    scroll+=isX?curEl.scrollLeft:curEl.scrollTop;curEl=curEl.offsetParent;}
    offset-=scroll;return offset;}

    In particulary is element.offsetParent is null;

    Now while I'm writing here I see that the problem is caused from a callbackpanel that includes the aspxPopupControl when at client side I invoke

    - aspxPopControl.Show()

    - and then callBackPanel.PerformCallback();

    I do that since i need to update popup content plus the popup header text, so if i put the callbackpanel inside of popupcontrols it works but the header text doesn't change.

    P.S (I'm using version 8.2.2)

    Any suggestion will be appreciated.

     

    Kind Regards

     

     

     

     

     

     

  • 11/7/2008 2:38 PM In reply to

    Re: Strange js error

    Hello Shogun,

    For errors, please create a bug report with a sample project and steps to reproduce so the support team can investigate the issue.

  • 12/1/2008 12:09 PM In reply to

    Re: Strange js error

    I get exactly the same exeption.

    I use ASPxPopupControl inside an Update Panel because I need to update it including the header but,  Below js row throws exception :

    function _aspxGetPositionElementOffset(element,isX){var curEl=element.offsetParent;var

    Is there any known solution for this issue ?

  • 12/2/2008 3:31 AM In reply to

    Re: Strange js error

     This is the official DevExpress answer to my question :

    http://www.devexpress.com/Support/Center/p/B131399.aspx

Page 1 of 1 (4 items)
Copyright © 1998-2009 Developer Express Inc.
ALL RIGHTS RESERVED