|
Posted by Richard Daly on 04/06/07 18:21
"Grant Robertson" <bogus@bogus.invalid> wrote in message
news:MPG.207b27bce3d683d0989715@news.newsguy.com...
> In article <kdOdnYA7Ff690I3bRVnyjwA@giganews.com>,
> richarddaly@yahoo.co.uk says...
> > The problem must have something to do with the Temporary internet files,
but
> > I don't want to erase them in case this adversely affects other
programmes.
>
> I don't understand why you wouldn't want to erase the Temporary Internet
> files. I may not have a lot of experience writing HTML but I do have lots
> of experience as a network manager. Simply deleting all the files in the
> "Temporary Internet Files" folder should not affect any other programs.
> The only program that uses those files is Internet Explorer. If you
> manually delete all of the files then you will also delete the cookies.
> This will cause you to loose settings for many web sites including some
> memorized passwords. However, if you choose { Tools / Internet Options ;
> <General> ; Browsing history ; [Delete] ; Temporary Internet Files ;
> [Delete Files] } then IE 7 will selectively delete only the cached web
> pages and leave your cookies alone.
>
This problem did go away for a while (just after I erased some history files
in Foxfire, for some reason), but now it's back with a vengeance.
I have deleted all the history and cookie files in both IE and Firefox, but
a changed page on my website refuses to update itself. I've redownloaded
that same page, to be sure I hadn't uploaded the wrong one.
(Opera is my main browser, and I can only selectively delete history files
and cookies with it, otherwise a metric tonne of stuff would be lost.)
I've tried rebooting my computer after cookie deletion, and control+F5 (and
F5 on its own).
I've even uploaded *all* of the website files, overwriting the old ones.
All to no avail.
My OS is W2K.
What on earth could be causing this?
The website does have a cookie setter. Here's the script:
function SDMenu(id) {
if (!document.getElementById || !document.getElementsByTagName)
return false;
this.menu = document.getElementById(id);
this.submenus = this.menu.getElementsByTagName("div");
this.remember = false;
this.speed = 3;
this.markCurrent = true;
this.oneSmOnly = false;
}
SDMenu.prototype.init = function() {
var mainInstance = this;
for (var i = 0; i < this.submenus.length; i++)
this.submenus[i].getElementsByTagName("span")[0].onclick = function() {
mainInstance.toggleMenu(this.parentNode);
};
if (this.markCurrent) {
var links = this.menu.getElementsByTagName("a");
for (var i = 0; i < links.length; i++)
if (links[i].href == document.location.href) {
links[i].className = "current";
break;
}
}
if (this.remember) {
var regex = new RegExp("sdmenu_" + encodeURIComponent(this.menu.id) +
"=([01]+)");
var match = regex.exec(document.cookie);
if (match) {
var states = match[1].split("");
for (var i = 0; i < states.length; i++)
this.submenus[i].className = (states[i] == 0 ? "collapsed" : "");
}
}
};
SDMenu.prototype.toggleMenu = function(submenu) {
if (submenu.className == "collapsed")
this.expandMenu(submenu);
else
this.collapseMenu(submenu);
};
SDMenu.prototype.expandMenu = function(submenu) {
var fullHeight = submenu.getElementsByTagName("span")[0].offsetHeight;
var links = submenu.getElementsByTagName("a");
for (var i = 0; i < links.length; i++)
fullHeight += links[i].offsetHeight;
var moveBy = Math.round(this.speed * links.length);
var mainInstance = this;
var intId = setInterval(function() {
var curHeight = submenu.offsetHeight;
var newHeight = curHeight + moveBy;
if (newHeight < fullHeight)
submenu.style.height = newHeight + "px";
else {
clearInterval(intId);
submenu.style.height = "";
submenu.className = "";
mainInstance.memorize();
}
}, 30);
this.collapseOthers(submenu);
};
SDMenu.prototype.collapseMenu = function(submenu) {
var minHeight = submenu.getElementsByTagName("span")[0].offsetHeight;
var moveBy = Math.round(this.speed *
submenu.getElementsByTagName("a").length);
var mainInstance = this;
var intId = setInterval(function() {
var curHeight = submenu.offsetHeight;
var newHeight = curHeight - moveBy;
if (newHeight > minHeight)
submenu.style.height = newHeight + "px";
else {
clearInterval(intId);
submenu.style.height = "";
submenu.className = "collapsed";
mainInstance.memorize();
}
}, 30);
};
SDMenu.prototype.collapseOthers = function(submenu) {
if (this.oneSmOnly) {
for (var i = 0; i < this.submenus.length; i++)
if (this.submenus[i] != submenu && this.submenus[i].className !=
"collapsed")
this.collapseMenu(this.submenus[i]);
}
};
SDMenu.prototype.expandAll = function() {
var oldOneSmOnly = this.oneSmOnly;
this.oneSmOnly = false;
for (var i = 0; i < this.submenus.length; i++)
if (this.submenus[i].className == "collapsed")
this.expandMenu(this.submenus[i]);
this.oneSmOnly = oldOneSmOnly;
};
SDMenu.prototype.collapseAll = function() {
for (var i = 0; i < this.submenus.length; i++)
if (this.submenus[i].className != "collapsed")
this.collapseMenu(this.submenus[i]);
};
SDMenu.prototype.memorize = function() {
if (this.remember) {
var states = new Array();
for (var i = 0; i < this.submenus.length; i++)
states.push(this.submenus[i].className == "collapsed" ? 0 : 1);
var d = new Date();
d.setTime(d.getTime() + (30 * 24 * 60 * 60 * 1000));
document.cookie = "sdmenu_" + encodeURIComponent(this.menu.id) + "=" +
states.join("") + "; expires=" + d.toGMTString() + "; path=/";
}
};
End of script
Is there anything here that could be causing this?
Thanks.
Richard
Navigation:
[Reply to this message]
|