Guest force name?

Last post 10-25-2007, 11:05 AM by Adam. 2 replies.
Sort Posts: Previous Next
  •  10-09-2007, 8:49 AM 34143

    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
  •  10-25-2007, 7:18 AM 34586 in reply to 34143

    Re: Guest force name?

    Any idea why it doesnt work? plz
     
  •  10-25-2007, 11:05 AM 34603 in reply to 34143

    Re: Guest force name?

    pltremblay,
     
    Populate the usermame Textbox with your own value and disable this TextBox.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML