Notices

Great community. Great ideas.

Welcome to ASP/Free, a community dedicated to helping beginners and professionals alike in improving their knowledge of Microsoft's development and administration technologies. Sign up today to gain access to the combined insight of tens of thousands of members.

Thread: AllinOne.js[dynamic] error while zooming and navigating to next page

Results 1 to 10 of 10
Share This Thread →
  1. #1
    vinayak.v is offline Registered User
    Join Date
    Mar 2011
    Posts
    5
    Rep Power
    0

    AllinOne.js[dynamic] error while zooming and navigating to next page

    hi..

    i'm using crystal report 13 and vs2010 in 32 bit OS

    reports are working fine but when i click to next page

    or zoom or find a word then

    the allinOne.jsdynamic file opens

    and shows the below error..

    Microsoft JScript runtime error: 'children.length' is null or not an object

    and the following is error in file

    A=G.children.length; it is showing A is undefined.

    what to do .. i dont know i'm confused..

  2. #2
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    Edit the JS code and have this line instead:
    Code:
    A = (G && G.children) ? G.children.length : 0;

  3. #3
    vinayak.v is offline Registered User
    Join Date
    Mar 2011
    Posts
    5
    Rep Power
    0
    Quote Originally Posted by Shadow Wizard
    Edit the JS code and have this line instead:
    Code:
    A = (G && G.children) ? G.children.length : 0;
    thanks for reply..
    but allinone.js[dynamic] it is
    created dynamically how to add the code to
    that file..

  4. #4
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    Sorry, not familiar with what you're using so I don't really know.

    Do you know what generated the file? Can you change that code?

    If not, is the line you posted part of some function? If so, post the whole function here.

  5. #5
    vinayak.v is offline Registered User
    Join Date
    Mar 2011
    Posts
    5
    Rep Power
    0
    it is very complecated
    code where the error occurs
    Code:
    for(var D=0,A=G.children.length;D<A;D++)

  6. #6
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    Quote Originally Posted by vinayak.v
    it is very complecated
    code where the error occurs
    Code:
    for(var D=0,A=G.children.length;D<A;D++)
    And is it inside a function? Can you post the whole function?

  7. #7
    vinayak.v is offline Registered User
    Join Date
    Mar 2011
    Posts
    5
    Rep Power
    0
    Quote Originally Posted by Shadow Wizard
    And is it inside a function? Can you post the whole function?
    it around 444590 charaters
    and the forum supports only 300000 that's y i didn't post

  8. #8
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    Quote Originally Posted by vinayak.v
    it around 444590 charaters
    and the forum supports only 300000 that's y i didn't post
    Not the whole "allinone.js" file.. just the function. Look for the word "function" that appears before the line "A=G.children.length;" that is causing this code - this word means the start of a "function". Does such thing exist?

  9. #9
    vinayak.v is offline Registered User
    Join Date
    Mar 2011
    Posts
    5
    Rep Power
    0
    Quote Originally Posted by Shadow Wizard
    Not the whole "allinone.js" file.. just the function. Look for the word "function" that appears before the line "A=G.children.length;" that is causing this code - this word means the start of a "function". Does such thing exist?
    function(G)
    {
    if(!G||G.cons!=="bobj.crv.newReportAlbum")
    {
    return
    }
    for(var D=0,A=G.children.length;D<A;D++)
    {
    var F=G.children[D];var B=this._views[D];
    if(B)
    {
    B.update(F)
    }
    }
    var E=G.children.length;
    var C=this._views.length;
    if(E>C)
    {
    for(var D=C,A=E;D<A;D++)
    {
    this.delayedAddChild(bobj.crv.createWidget(G.child ren[D]))
    }
    }
    else
    {
    if(E<C)
    {
    for(var D=C-1,A=E;D>=A;D--)
    {
    this._removeView(false,D)
    }
    }
    }
    this.initTabIdx=G.args.initTabIdx;this.select(this .initTabIdx)
    }

  10. #10
    Shadow Wizard's Avatar
    Shadow Wizard is offline Moderator From Beyond
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,126
    Rep Power
    2921
    Sorry, out of luck.... it's anonymous function so my idea of overwriting it goes to the trash.

    Guess you'll have to find the core of the problem, can't find any way around.

    Since it's related to Crystal Reports try asking in forum specific to that product.

Share This Thread →

Become Part of This Conversation

Join NowFor Free!

ASP Free Advertisers and Affiliates