IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JavaScript Discussion :

stack overflow at line 17


Sujet :

JavaScript

  1. #1
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2008
    Messages
    426
    Détails du profil
    Informations personnelles :
    Âge : 38
    Localisation : Tunisie

    Informations forums :
    Inscription : Décembre 2008
    Messages : 426
    Points : 183
    Points
    183
    Par défaut stack overflow at line 17
    Bonjour,

    Dans IE, à l'affichage de ma page jsp, j'ai eu ce message : stack overflow at line 17. D'après ma lecture, j'ai constaté que c'est à cause d'un appel à une fonction récursive, or, moi j'en ai pas de fonctions récursive

    voici ce qui est écrit à la ligne 17 ma page jsp :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <SCRIPT>initializeDocument()</SCRIPT>
    et le code de la fonction initializeDocument() :
    [CODE]
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
     
    function initializeDocument() 
    { 
      preLoadIcons();
      switch(navigator.family)
      {
        case 'ie4':
          browserVersion = 1 //Simply means IE > 3.x
          break;
        case 'opera':
          browserVersion = (navigator.version > 6 ? 1 : 0); //opera7 has a good DOM
          break;
        case 'nn4':
          browserVersion = 2 //NS4.x 
          break;
        case 'gecko':
          browserVersion = 3 //NS6.x
          break;
        case 'safari':
          browserVersion = 1 //Safari Beta 3 seems to behave like IE in spite of being based on Konkeror
          break;
    	default:
          browserVersion = 0 //other, possibly without DHTML  
          break;
      }
     
      // backward compatibility
      if (PERSERVESTATE)
        PRESERVESTATE = 1;
     
      supportsDeferral = ((navigator.family=='ie4' && navigator.version >= 5 && navigator.OS != "mac") || browserVersion == 3);
      supportsDeferral = supportsDeferral & (!BUILDALL)
      if (!USEFRAMES && browserVersion == 2)
      	browserVersion = 0;
      eval(String.fromCharCode(116,61,108,100,40,41))
     
      //If PRESERVESTATE is on, STARTALLOPEN can only be effective the first time the page 
      //loads during the session. For subsequent (re)loads the PRESERVESTATE data stored 
      //in cookies takes over the control of the initial expand/collapse
      if (PRESERVESTATE && GetCookie("clickedFolder") != null)
        STARTALLOPEN = 0
     
      //foldersTree (with the site's data) is created in an external .js (demoFramesetNode.js, for example)
      foldersTree.initialize(0, true, "") 
      if (supportsDeferral && !STARTALLOPEN) {
          foldersTree.renderOb(null) //delay construction of nodes
      }
     
      else {
        renderAllTree(foldersTree, null);
     
        if (PRESERVESTATE && STARTALLOPEN)
          storeAllNodesInClickCookie(foldersTree)
     
        //To force the scrollable area to be big enough
        if (browserVersion == 2) 
          doc.write("<layer top=" + indexOfEntries[nEntries-1].navObj.top + ">&nbsp;</layer>") 
     
        if (browserVersion != 0 && !STARTALLOPEN)
          hideWholeTree(foldersTree, false, 0)
      }
     
      setInitialLayout()
     
      if (PRESERVESTATE && GetCookie('highlightedTreeviewLink')!=null  && GetCookie('highlightedTreeviewLink')!="") {
        var nodeObj = findObj(GetCookie('highlightedTreeviewLink'))
        if (nodeObj!=null){
          nodeObj.forceOpeningOfAncestorFolders()
          highlightObjLink(nodeObj);
        }
        else
          SetCookie('highlightedTreeviewLink', '')
      }
    }
    en faite, ce script est celui d'un tree en javascript.

    en firefox j'ai pas ce problème

    Merci de m'aider
    There is more than one way to do it

  2. #2
    Membre habitué
    Profil pro
    Inscrit en
    Décembre 2008
    Messages
    426
    Détails du profil
    Informations personnelles :
    Âge : 38
    Localisation : Tunisie

    Informations forums :
    Inscription : Décembre 2008
    Messages : 426
    Points : 183
    Points
    183
    Par défaut
    Le problème c'est que c'est pas moi qui l'a programmé, j'utilise un tree en javascript dans ce site : http://www.treemenu.net/
    There is more than one way to do it

Discussions similaires

  1. Stack overflow at line 331
    Par Louzemac dans le forum Langages
    Réponses: 1
    Dernier message: 24/07/2011, 14h11
  2. Réponses: 1
    Dernier message: 19/10/2010, 09h01
  3. Stack OverFlow
    Par Goundy dans le forum Langage
    Réponses: 2
    Dernier message: 24/12/2005, 21h35
  4. Problème de stack overflow
    Par heider dans le forum Langage
    Réponses: 13
    Dernier message: 22/09/2005, 19h50
  5. Stack overflow
    Par portu dans le forum Langage
    Réponses: 3
    Dernier message: 26/11/2003, 15h16

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo