This topic contains 3 replies, has 0 voices, and was last updated by  ArmorWraith 7 years, 2 months ago.

  • Author
    Posts
  • #7273

    Laptops Daddy
    Participant

    SERVER PAGE CHAT

    couple of suggetions:

    it could use a non-ajax backup. what do we call that these days? sax i guess : )

    if it’s going to be mainly javascript/asymmetric, it could be nice to also send a request to the server info with each new update? ie, players on the servers. ‘player has joined merge’ or something

    *edited ^. also, asymmetric. ha ha. async, i meant

    custom up/down arrows? (overflow divs with stock scrollbars always look a bit rough). it’d prob be easy to do something pretty with something like prototype or mootools? and, frameworks – probably more trouble than theyre worth for the xml stuff.

    #60864

    Thrax
    Participant

    Also, since someone seems prone to spamming it lately, it may need the visual
    posts increased to 50 or so..

    It’s no help when you are trying to see a reply from someone, and 25 spam
    posts are inserted just to move someone elses message from visibility.

    Unless there’s a way to clean off those spam posts and return some sence
    to it.

    #60865

    Laptops Daddy
    Participant

    id rather see spam than an empty chat box!

    i wouldnt bother with a javascript framework for xmlhttprequests

    here, i should probably put my money where my mouth is on that, otherwise im just being an ass.

    var xmlreq=false;
    /*@cc_on @*/
    /*@if (@_jscript_version >= 5)
    try {
    xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
    try {
    xmlreq = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (e) {
    xmlreq = false;
    }
    }
    @else
    xmlreq = false;
    @end @*/
    if (!xmlreq && typeof XMLHttpRequest!='undefined') {
    try {
    xmlreq = new XMLHttpRequest();
    } catch (e) {
    xmlreq = false;
    }
    }
    function getDoc(someDoc) {
    if (xmlreq) {
    xmlreq.open("GET",someDoc,true);
    xmlreq.onreadystatechange=function() {
    if (xmlreq.readyState==4) {
    var responseX = xmlreq.responseXML.documentElement;
    var pseudoVal = responseX.getElementsByTagName('sometag')[0].childNodes...etc,etc.nodeValue;
    }
    }
    xmlreq.send(null)
    }

    ^ that’d remove the need for prototype. that @cc_on stuff is conditional compilation. so, for IE, you try an ‘Msxml2.XMLHTTP’, catch if it cant, and try ‘Microsoft.XMLHTTP’ for older versions. then if it’s still no good, try a straight XMLHttpRequest.

    should work cross browser.

    that might be useful, ’cause there’s some kind of double post bug at the mo. i dont know if it’s related to the readystate, but if it is, it could be more of a pain to fix than prototype et al are worth. it could be easier to lose the framework completely.

    (hope that’s not too much of a cheek)

    #60866

    Rommel
    Participant

    Hi Thrax :

    I haven’t heard anyone complaining about you spamming the chat window
    with talk about your servers but I guess that could be considered spam.

    @thrax wrote:

    Also, since someone seems prone to spamming it lately, it may need the visual
    posts increased to 50 or so..

    It’s no help when you are trying to see a reply from someone, and 25 spam
    posts are inserted just to move someone elses message from visibility.

    Unless there’s a way to clean off those spam posts and return some sence
    to it.

    Personally, I agree with Laptop’s Daddy, it’s better to see some activity
    than to see posts made two weeks ago.

    BTW, the purpose of a chat window is not to replace the forums.
    We do not need to try and store the messages there. Those that
    desire to leave something posted for longer than a few minutes,
    should be using the forums.

    Best Wishes,

    Rommel

    #60867

    ArmorWraith
    Participant

    @rommel wrote:

    talk about your servers but I guess that could be considered spam.

    Thats what the chatbox is for, Servers. Thats why its in Online Game servers..

    Kanga

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.