• Random error

    By Mark Manwaring 2 decades ago

    Hi

    I have put the files into my app and all works fine but I get a random error in fire fox that says something like object has no variable on the line of exand.isExpanded=true. I don't know what this happens but can anyone help me on this



    Thanks

    • problem with NotesView2.1.7 in Firefox

      By Rod Weaver 2 decades ago

      I'm running into the same thing. My environment uses Firefox 2.0.0.14. NotesView works fine as long as view is ExpandAll or CollapseAll. The problem is when individual entries are expanded/collapsed and the page is reloaded. The view just goes blank. I can get it back if I ExpandAll or CollapseAll and reload the page.



      The error comes in jsNotesView on the line "entry.isExpanded = true" in the expand section after line "function (this.expand = function(position) {". I've also gotten the error on the line "var pos = entry.position" in the getNextSiblingOrAncestor function. In both cases Firebug reports "entry has no property"



      The Javascript appears to break in the getEntryByPosition function causing the var entry to be null.



      One more funky thing about this error: everything works when I step through the code using "step into" in Firebug.



      If anybody has been able to fix this I would surely appreciate it.



      BTW, upgrading to Firefox 3 is not possible in my environment at this time.



      Thanks, in advance.

      • By S.Michael Smith 1 decade ago

        For anyone wanting to use this, I ended up resolving some issues by replacing the following lines:



        In the jsNotesView2.1.7 script library, in the getRow function, replace this line



        var inp = document.createElement("");



        with this line



        var inp = document.createElement("input" + ch + "");//yeah you could take out the quotes too if you want.



        In the jsUtility script library, in the loadXMLRequest function, replace this line



        request.open(type,url,true);



        with this line



        request.open(type,url,false);//changed asynchronous to false to fix a problem with the readyState polling.



        The asynchronous change was maybe a brute force fix, but it is working in every browser I've tested so far.