Flash Integration

Last post 05-26-2008, 1:22 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  05-23-2008, 2:40 PM 40730

    Flash Integration

    I have a mostly Flash-based website. I need to be able to dynamically render links to start a new chat session based on "Agent Availability". Is there a way I can post a request to an .ASPX function that will return values needed to create a link to start a chat session? For Example:
     
    <form action="findStatus.aspx" method="post"><input type="submit" value="find status" /></form>
    <form action="createLink.aspx" method="post"><input type="submit" value="create link" /></form>
     
    // findStatus.aspx
     
    public bool agentAvailable() {
       // Check to see if an operator is available
       if(operator.isOnline) {
          return true; 
       } else {
          return false;
       }
    }
     
    //createLink.aspx
    public string createChatLink(bool agentOnline) {
       if(agentOnline) {
          return "BLOCKED SCRIPTstartChat();";
       } else {
          return "BLOCKED SCRIPTleaveMessage();";
       }
    }
     
    Basically, my flash movie would post form data to these external pages and I would render a button based on the outcome. I hope this makes sense. Also, I don't know if there are any Web Services made for Cute Support Chat that I could make service calls to? That would be prefered over my simple form-based method.
  •  05-26-2008, 1:22 PM 40777 in reply to 40730

    Re: Flash Integration

    You can use the following method to detect the agent is online or not.
     
    CuteChat.ChatWebUtility.HasReadyAgents()
     
    For example, in the file CuteSoft_Client\CuteChat\Support-Image-Button.js.aspx:
     
    function WriteLiveSupportButton()
    {

     var ImageURL='<%= CuteChat.ChatWebUtility.HasReadyAgents()/*HasOnlineAgents()*/?URL_live_help_online_image:URL_live_help_offline_image %>';
     ImageURL= "<img title=\"support chat\" src=\""+ImageURL+"\" border=0>";
     // write the live support button to the page
     document.write('<a href=\"###\" onclick=\"OpenLiveSupport()\">'+ImageURL+'</a>');
    }

    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