Shown: posts 1 to 8 of 8. This is the beginning of the thread.
Posted by JohnX2 on June 19, 2002, at 19:19:34
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. I was
able to look at the java script in visual c++ when
i.e. explorer hit the error (it asked me if I wanted to debug it, so I did although I don't no jack cheese about java).I sent a message using the home page "feedback" with a description of the error and my email, and this problem has not been addressed. I can't read any feedback in the threads (only the top part right before the threads appears in both my netscape and explorer windows).
Can we get this fixed? Why doesn't my i.e. exlorer
at home go past the error, but this computer offsite does? Hmmm..Thanks,
John
Posted by JohnX2 on June 19, 2002, at 19:25:20
In reply to cookes all screwed and errors on page, posted by JohnX2 on June 19, 2002, at 19:19:34
This same offsite machine has Netscape communicator vr. 4.7 and it does the same thing
as mine at home. That is it quickly shows a
java script error message (flashes too quickly to
read), and then it tries to load the rest of the
admin page past the header, but it never displays
the threads.John
>
> 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. I was
> able to look at the java script in visual c++ when
> i.e. explorer hit the error (it asked me if I wanted to debug it, so I did although I don't no jack cheese about java).
>
> I sent a message using the home page "feedback" with a description of the error and my email, and this problem has not been addressed. I can't read any feedback in the threads (only the top part right before the threads appears in both my netscape and explorer windows).
>
> Can we get this fixed? Why doesn't my i.e. exlorer
> at home go past the error, but this computer offsite does? Hmmm..
>
> Thanks,
> John
Posted by Dr. Bob on June 19, 2002, at 20:33:13
In reply to cookes all screwed and errors on page, posted by JohnX2 on June 19, 2002, at 19:19:34
> 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
Posted by JohnX2 on June 20, 2002, at 2:01:26
In reply to Re: cookes all screwed and errors on page, posted by Dr. Bob on June 19, 2002, at 20:33:13
> > 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,
>
> BobMaybe 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)
}
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
Posted by Dr. Bob on June 20, 2002, at 14:15:38
In reply to Re: cookes all screwed and errors on page, posted by JohnX2 on June 20, 2002, at 2:01:26
> > combTime might be null, but why would that be a problem?
>
> you dereference a NULL object????
>
> idx = combTime.indexOf(":") <--- combTime = NULLThat's not dereferencing, is it? I thought if combTime were null, indexOf would just return -1. But you're right, it's an error. Sorry! It should be fixed now.
> 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.I don't care for it, either, and it's on my list of things to do. In the meantime, there's a way to erase your cookies if you're concerned about wrong-doers:
http://www.dr-bob.org/cgi-bin/pb/extras.pl
But maybe you can also help me with this:
1. Is there a way to encrypt in Javascript?
2. Even if cookies were encrypted, couldn't a wrong-doer still just walk off with them (and use them later) in that form?
3. Even if cookies were encrypted, the form would still need to be able to accept unencrypted passwords, since the poster might have erased their cookies or just not have cookies turned on. How would the form be able to do both?
Bob
Posted by JohnX2 on June 20, 2002, at 23:41:52
In reply to Re: cookes, posted by Dr. Bob on June 20, 2002, at 14:15:38
> > > combTime might be null, but why would that be a problem?
> >
> > you dereference a NULL object????
> >
> > idx = combTime.indexOf(":") <--- combTime = NULL
>
> That's not dereferencing, is it? I thought if combTime were null, indexOf would just return -1. But you're right, it's an error. Sorry! It should be fixed now.
>
> > 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.
>
> I don't care for it, either, and it's on my list of things to do. In the meantime, there's a way to erase your cookies if you're concerned about wrong-doers:
>
> http://www.dr-bob.org/cgi-bin/pb/extras.pl
>
> But maybe you can also help me with this:
>
> 1. Is there a way to encrypt in Javascript?
>
> 2. Even if cookies were encrypted, couldn't a wrong-doer still just walk off with them (and use them later) in that form?
>
> 3. Even if cookies were encrypted, the form would still need to be able to accept unencrypted passwords, since the poster might have erased their cookies or just not have cookies turned on. How would the form be able to do both?
>
> Bob
Thanks for the fixes. It runs smoothly both under Netscape and Explorer with no Errors.I don't know much about Java, so I don't have good answers to your questions.
There must be a way to do the password encryption though I would think, as this would be a substantial security issue for something like online banking, etc. I don't think it could be done using a Java script running on a client though, as a hacker can break into and read the Java code like I unintentionally did.
Gee I hope the online banking, brokers, etc with
autocomplete aren't exposing passwords as such.Regards,
John
Posted by Dr. Bob on August 16, 2002, at 13:23:46
In reply to Re: cookes all screwed and errors on page, posted by JohnX2 on June 20, 2002, at 2:01:26
> 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.OK, it should be doing something like that now. Please let me know if there are any problems...
Bob
This is the end of the thread.
Psycho-Babble Administration | Extras | FAQ
Dr. Bob is Robert Hsiung, MD, bob@dr-bob.org
Script revised: February 4, 2008
URL: http://www.dr-bob.org/cgi-bin/pb/mget.pl
Copyright 2006-17 Robert Hsiung.
Owned and operated by Dr. Bob LLC and not the University of Chicago.