#1
  1. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    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
  3. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2922
    Edit the JS code and have this line instead:
    Code:
    A = (G && G.children) ? G.children.length : 0;
  4. #3
  5. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Mar 2011
    Posts
    5
    Rep Power
    0
    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..
  6. #4
  7. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2922
    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.
  8. #5
  9. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    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++)
  10. #6
  11. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2922
    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?
  12. #7
  13. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Mar 2011
    Posts
    5
    Rep Power
    0
    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
  14. #8
  15. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2922
    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?
  16. #9
  17. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Mar 2011
    Posts
    5
    Rep Power
    0
    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)
    }
  18. #10
  19. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2922
    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.

IMN logo majestic logo threadwatch logo seochat tools logo