• Problems with Firefox

    By Heiko Voigt 2 decades ago

    Hi,



    I experienced some problems with loadState() in Firefox (2.0.10) - in conjunction with categorized views. If I open a document in a categorized view without having all expanded and go back to the view using history.back, no content rows get displayed , only the design of the view. If I expand all before opening the document everything works fine. In IE 5/6/7 everything works as expected. Did anynone solve this or have an idea on how to fix this ?

    • Opera too

      By Jan O Hauge 2 decades ago

      The same problem occurs in Opera

      • Details on problems

        By Heiko Voigt 2 decades ago

        Hi,



        I investigeted a little bit further during the last days - running my application on Domino 7.0x Server fixed the issues - the problem came up using domino designer 8 and domino 8 as the web server. Is that the same combination for the Opera problem ?



        Greetings,



        Heiko.

        • By Jan O Hauge 2 decades ago

          I'm running 7.2, the problem is visible from this platform.

    • Opera too

      By Jan O Hauge 2 decades ago

      The same problem occurs in Opera

    • Caching Problem

      By Rayan Hanoudi 2 decades ago

      It seems like the problem is related to caching. If I turn off the cookies on the browser it starts working.



      I was also able to make it work by commenting out this code in the jsNotesView2.1.7 script library:


         /***************loadState*********************/<br/>
          this.loadState = function(){<br/>
         /*<br/>
                  var a = document.cookie.split(&quot;;&quot;);<br/>
                 <br/>
                  var key = escape(this.db + &quot;!&quot; + this.name).toLowerCase();<br/>
                  for(var i = 0 ; i &lt; a.length ; i++){<br/>
                          if(a[i].indexOf(&quot;=&quot;) != -1){<br/>
                                  var cookieName = a[i].left(&quot;=&quot;).trim();<br/>
                                  if(cookieName == key){<br/>
                                          var cookieValues = unescape(a[i].right(&quot;=&quot;)).trim().split(&quot;|&quot;);<br/>
                                          this.resortDescending = parseInt(cookieValues[0]);<br/>
                                          this.resortAscending = parseInt(cookieValues[1]);<br/>
                                          this.expandAll = (cookieValues[2]==&quot;true&quot;) ? true : false;<br/>
                                          this.selectedEntryPosition = cookieValues[3];<br/>
                                          this.start = cookieValues[4];<br/>
                                  } else if (cookieName == key + &quot;!allExpanded&quot;) {<br/>
                                          this.allExpanded = unescape(a[i].right('=')).trim();<br/>
                                  } else if (cookieName == key + '!previousStarts') {<br/>
                                          this.previousStarts = unescape(a[i].right('=')).trim();<br/>
                                          this.previousStarts = this.previousStarts.split(',');<br/>
                                  } else if (cookieName == key + '!replayHistory') {<br/>
                                          this.navigator.replayHistory = unescape(a[i]).right('=').trim().split('^');<br/>
                                          var s = this.db + &quot;/&quot; + this.name + &quot;?readviewentries&amp;preformat&amp;count=&quot;;<br/>
                                          for (var x=0; x &lt; this.navigator.replayHistory.length; x++) {<br/>
                                                  var categoryEntry = {};<br/>
                                                  url = this.navigator.replayHistory[x];<br/>
                                                  this.navigator.loadDataFromCache(s + url, null);<br/>
                                          }<br/>
                                  }<br/>
                          }<br/>
                  }<br/>
                  */