Flash Integration

  •  05-23-2008, 2:40 PM

    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.
View Complete Thread