• Javascript error on save

    By Jeff Parr 2 decades ago

    Whenever I Save a wiki Page I get this error:

    Line 44: document.Wiki.CookieName.value is null



    44:

    • Thanks Jeff

      By Benedict R Poole 2 decades ago

      My bad, I did v little testing with authenticated users! It should be prety easy to fix

    • Re: Javascript error on save

      By Rob Wills 2 decades ago

      Just to confirm that I get the same error with IE7 but not Firefox.



      I downloaded the 1.1 RC4 version yesterday. Very cool Ben!



      Rob Wills.

      • Fixed (I think)

        By Rob Wills 2 decades ago

        I added a check to ensure that we were dealing with an object and that seemed to fix the problem. I realise that this was probably obvious and may already be fixed in your 1.2 code but thought I'd post it anyway. This was in the onSubmit event in the Wiki form.



        if (typeof document._Wiki.CookieName == 'object')

        {

        if(document._Wiki.CookieName.value!='')<br/>
        {<br/>
            rememberMe(document._Wiki);<br/>
        }<br/>
        

        }