Set Department in script

Last post 05-10-2011, 11:44 AM by jvarga. 2 replies.
Sort Posts: Previous Next
  •  05-09-2011, 12:57 PM 67500

    Set Department in script

    Hello, I was wondering if it was possible to set the department based on some parameter or something? Is there a way to set the script source so that it will go to a specific department? Can you choose departments based on host-headers or something like that?
  •  05-09-2011, 9:10 PM 67506 in reply to 67500

    Re: Set Department in script

    Hi jvarga,
     
    1. Open file "\CuteSoft_Client\CuteChat\SupportClient.aspx"
     
    2. Add the code below to the end of the page. "input_department" is the department select control, so you can handle it by javascript.
    The code below just a simple example. You should write your own logic to handle it.
     
    <script>
    window.onload=function()
    {
        var input_department=document.getElementById("input_department");
        input_department.selectedIndex=2;
    }
    </script>
     
    Regards,
     
    ken
  •  05-10-2011, 11:44 AM 67521 in reply to 67506

    Re: Set Department in script

    Thank you very much, that works great.
View as RSS news feed in XML