Psycho-Babble Administration | about the operation of this site | Framed
This thread | Show all | Post follow-up | Start new thread | List of forums | Search | FAQ

Re: cookes all screwed and errors on page

Posted by JohnX2 on June 20, 2002, at 2:33:25

In reply to Re: cookes all screwed and errors on page, posted by JohnX2 on June 20, 2002, at 2:01:26

> > > I'm using microsoft i.e. explorer 5.5 with win95
> > > at an offsite location and it lets me load pages
> > > like pbabble admin, but it notes at the bottom that there are "errors on page".
> > >
> > > When I try loading things at home with i.e.
> > > explorer 5.5 with win98, I get the shaft whenever
> > > I try to load any page. I get a java script error
> > > which is basically telling me that some ptr or
> > > id for a cookie called babbletime or babbleprev
> > > or something is NULL because the cookie is not
> > > located anywhere and you don't check for a null
> > > ptr. Tsk, Tsk. This started a few days ago.
> >
> > So it works with Windows 95 but not with Windows 98? Windows is getting worse with time? :-) This probably has to do with the change I mentioned above:
> >
> > http://www.dr-bob.org/babble/admin/20020510/msgs/5656.html
> >
> > combTime might be null, but why would that be a problem? Could someone else take a look?
> >
> > In the meantime, maybe just try this:
> >
> > http://www.dr-bob.org/babble/faq.html#cleanup
> >
> > Thanks for your patience,
> >
> > Bob
>
> Maybe the cookie babbleadmintime doesn't exist?
>
> And then you dereference a NULL object????
>
> idx = combTime.indexOf(":") <--- combTime = NULL
>
> Also, it does pass under my win98 but I get a
> debug trap with every java error and I am prompted
> as to whether or not I want to debug it (If I
> click no on a million follow up errors the page
> appears as it did on the other computer). I don't
> get this on the other machine. Maybe because I
> have a lot of software development tools on my
> machine, some setting somewhere is causing the
> debug traps.
>
> Every where else in your script you check to see
> if a cookie returns NULL. But you don't do this
> for babbleadmintime.
>
> Also, I don't care for the way the password cookie
> has the password in plain ASCII if you load the file. Maybe there is a way you could encrypt this and deencrypt it locally so that wrong-doers don't walk off with our passwords.
>
> John
>
>
> // time (in ms) when site visited
> cookieName = "babbleadmintime"
> cookiePrev = "babbleadminprev"
>
> // update new combined thisTime:prevTime cookie
> thisTime = now.getTime()
> combTime = getCookie(cookieName) <<<<<<<<<<<<<<<< Error: combTime is Null or not an object.
> idx = combTime.indexOf(":")
> if (idx == -1) { // old separate
> lastTime = combTime
> prevTime = getCookie(cookiePrev)
> delCookie(cookiePrev)
> } else { // new combined
> lastTime = combTime.substr(0 , idx)
> prevTime = combTime.substr(idx + 1)
> }
> if (window.location.href.search("\\d{8}") == -1) {
> setCookie(cookieName, thisTime + ":" + lastTime, exp)
> }

The error is in fact with the statement:

idx = combTime.indexOf(":")

The error being:

-- combTime is NULL or not an object --

My debugger shows combTime = NULL

John


Share
Tweet  

Thread

 

Post a new follow-up

Your message only Include above post


Notify the administrators

They will then review this post with the posting guidelines in mind.

To contact them about something other than this post, please use this form instead.

 

Start a new thread

 
Google
dr-bob.org www
Search options and examples
[amazon] for
in

This thread | Show all | Post follow-up | Start new thread | FAQ
Psycho-Babble Administration | Framed

poster:JohnX2 thread:5706
URL: http://www.dr-bob.org/babble/admin/20020510/msgs/5714.html