Guest force name?

  •  10-09-2007, 8:49 AM

    Guest force name?

    Hi, we are implementing CuteLive support with our security policy. Everything works properly except for one annoying thing...
     
    When a user comes our website we associate a session to it that had an id. The implementation of GetUserUniqueName return that id and based on this id we we can determine what GetUserDisplayName will usually return "Guest" since hes not logged or the name of his account when logged.
     
    What we would like to do when its a "Guest" requesting assistance, is to replace the name "Guest" when he submit the chat request with the name he entered...
     
    function submit_form()
    {
    var input_name=document.getElementById("txtName_txt");
    var input_email=document.getElementById("txtEmail_txt");
    var input_question=document.getElementById("txtQuestion");
    var input_department=document.getElementById("lstDepartment");
    var input_referrer=document.getElementById("input_referrer");

    var props={};
    props["Name"]=input_name.value;
    props["Email"]=input_email.value;
    props["Department"]=input_department.value||null;
    props["Question"]=input_name.value + ":" + input_question.value||null;
    props["Referrer"]=input_referrer.value||null;

    //more public properties ?
    Chat_IntervalWait(props);

    input_name.disabled=true;
    input_email.disabled=true;

    div_waiting.style.display=''
    }
     
    And yes there is really a value in input_name :)
     
    What I am missing?
     
    Thanks
View Complete Thread