Forums

Strange js error

Last post 12/2/2008 3:31 AM by Shogun Mizokunimito. 3 replies.
Sort Posts: Previous Next
  • Shogun Mizokunimito

    Strange js error

    11/7/2008 12:48 PM
    • Not Ranked
    • Joined on 10/13/2008
    • Posts 32

     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

     

     

     

     

     

     

  • Mehul Harry (DevExpress)

    Re: Strange js error

    11/7/2008 2:38 PM
    • Top 10 Contributor
    • Joined on 12/7/2006
    • California
    • Posts 3,350

    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.

  • Derya Guler

    Re: Strange js error

    12/1/2008 12:09 PM
    • Not Ranked
    • Joined on 11/26/2008
    • Posts 3

    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 ?

  • Shogun Mizokunimito

    Re: Strange js error

    12/2/2008 3:31 AM
    • Not Ranked
    • Joined on 10/13/2008
    • Posts 32

     This is the official DevExpress answer to my question :

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

More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.