![]() ![]() |
Audio Asylum Thread Printer Get a view of an entire thread on one page |
For Sale Ads |
198.54.134.91
In Reply to: RE: OK, these seems happier posted by Rod M on February 27, 2025 at 12:55:25
It will just add the new function to the browser session, you can then click the existing 'Mark as Read' Link and it will run the new code.
The current link is JS, that JS then calls a server side function.
The new function does all the work on the client side.
I want to get back on this project. We were on a trip in March and I'm getting back into the groove. Maybe a phone call or email will be a better discussion as I do want to get this done.
-Rod
KPps. realized the server is doing something to persist the change on page reload, cookie maybe?
edit: ok, I see it seems to associate with the user log-inthis accounts for that:
function confirmRead(ReadForum, ReadThread) {
if (userID) {
if (userID != null) {
if (confirm("Are you sure you want to mark toggle - test " + ReadThread + " as read/unread?")) {
location = "/cgi/markread.mpl?forum="+ReadForum+"&thread="+ReadThread;
var anchorElement = document.querySelector('a[href*="' + ReadThread + '.html"]');var nearestLiParent = anchorElement.parentNode.closest('li');
toggleElement = nearestLiParent;toggleElement.classList.add('aa-d');
var nextSib = nearestLiParent.nextElementSibling;
if (anchorElement) {
var count = 0;
var ulChildren;
var children = nearestLiParent.nextElementSibling.querySelectorAll('*');
children = nextSib.querySelectorAll('li');for (let i = 0; i < children.length; i++) {
var toggleElement = children[i];
toggleElement.classList.add('aa-d');
}
}
}
} else {
alert("You must log in to Mark Threads as read.")
}
} else {
alert("You must log in to Mark Threads as read.")
}
}
Edits: 03/25/25
This post is made possible by the generous support of people like you and our sponsors: