none
Chatroom capabilities RRS feed

  • Question

  • Now that there is a way to post these programs on a website, is it possible to build a chatroom?
    Thursday, February 11, 2010 11:45 PM

Answers

  • Hacker,

    Basically, all the 'chat' work is being done by the cfxchange.com/sb/msg.cfm script on their server. It sits there waiting for text to be submitted to it for a particular 'room', then adds that text to it conversation cache.

    Adams then uses SmallBasic's GetWebPageContents function every 5 seconds to ask the server to send it a copy of the cache (in the same way you'd request any web page content), which Adams then displays to the screen.

    Other than that it processes your key presses using the SmallBasic keypress interrupt until you hit enter, then sends your 'message' to the chat server by 'loading' the chat webpage but also passing it your own message at the same time using a standard 'querystring' value in the URL.

    So, through the use of querystrings, the whole 'chat' session seems to work simply by requesting and displaying a web page over and over.

    Is that any help?
    Saturday, February 13, 2010 12:47 AM
  • aadams wrote-

    Here's a simple chat/IM client.

    KLG986

    Uses a ColdFusion web application server to process the requests and maintain session data.

    NOTE: You'll have to un-comment the line starting with: "checkDir = File." as it is automatically commented out when publishing

    http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/b1b383c1-6b13-49c0-bf29-00de86103ac6
    Friday, February 12, 2010 4:24 AM

All replies

  • I think that would be great - in theory - to pass & receive help without filling the forum up.  But there may not be any moderation on behavior which WILL be a problem, especially for software like this that appeals to a younger audience.  You could set it up so that there's at least 3-4 people in a room before they could speak, and you'd have a way to rat people out, as well as have a 18+ age lower limit on an honor system.  Seems to me at the moment there's not a huge amount of messages getting posted here so I'd go ahead and post any questions & ideas.
    Friday, February 12, 2010 2:54 AM
  • I actually meant build a chatroom with small basic?

    Friday, February 12, 2010 3:09 AM
  • aadams wrote-

    Here's a simple chat/IM client.

    KLG986

    Uses a ColdFusion web application server to process the requests and maintain session data.

    NOTE: You'll have to un-comment the line starting with: "checkDir = File." as it is automatically commented out when publishing

    http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/b1b383c1-6b13-49c0-bf29-00de86103ac6
    Friday, February 12, 2010 4:24 AM
  • If you could explain alittle what he did that would be great>
    Friday, February 12, 2010 7:00 AM
  • Hacker,

    Basically, all the 'chat' work is being done by the cfxchange.com/sb/msg.cfm script on their server. It sits there waiting for text to be submitted to it for a particular 'room', then adds that text to it conversation cache.

    Adams then uses SmallBasic's GetWebPageContents function every 5 seconds to ask the server to send it a copy of the cache (in the same way you'd request any web page content), which Adams then displays to the screen.

    Other than that it processes your key presses using the SmallBasic keypress interrupt until you hit enter, then sends your 'message' to the chat server by 'loading' the chat webpage but also passing it your own message at the same time using a standard 'querystring' value in the URL.

    So, through the use of querystrings, the whole 'chat' session seems to work simply by requesting and displaying a web page over and over.

    Is that any help?
    Saturday, February 13, 2010 12:47 AM