Re: Chatroom

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33663
interpreted = N
texte = Here's what I have with a detailed breakdown, and I restated the problem that I'm having:I have made a chatroom based on webcatalog, javascript, and frames. Basically what happens is every five seconds it checks for a new message, or a new user, if it finds one, it refreshes the respective frames. The problem I'm having is that it seems to be very unstable. It will freeze the server once you have a couple people in the chatroom. It is very database intensive, so I'm sure there is alot going on, on the server side. It is being hosted on a Mac, and it's using Web Catalog 3.0. If anyone has any ideas or thoughts as to why I'm having so much trouble, please reply to this message. login screen: [hideif [lookup db=heartsgalore.db&value=[pin]&lookinfield=PIN&returnfield=MyPass1¬found=NotFound]![pword]] [showif [lookup db=[pin]-purchased.db&value=[pin]&lookinfield=PIN&returnfield=PINsPurchased¬found=NotFound]^-member] [search db=chatroom/chatroom.db&recordnosort=1&recordnodir=as&nepinnamedata=12Marklar3][append db=chatroom/userlist.db]user=[pin]&enteredrecordno=[math][numfound]+1[/math][/append][/search] [closedatabase chatroom/chatroom.db] [closedatabase chatroom/userlist.db] [redirect chatroom.tpl?pin2=[pin]] [/showif] [/hideif] [closedatabase heartsgalore.db]

If you think that it's possible you entered your password incorrectly, hit the back button and try again.

That is where the login and pword are both checked, if verified, they are sent to the chatroom...The chatroom is broken into 5 pages.The top frame is static - just the header image and onUnload code to remove the user from the database when they exit the chatroom.The bottom frame is the message entry screen which reloads every time a message is sent from your computer. Here's that code: [text]pin3=[username][/text]
Enter Message:
[search db=chatroom.db&recordnosort=1&recordnodir=as&nepinnamedata=12Marklar3][append db=chatroom.db]pinname=[username]&message=[msgtxt]&recordno=[math][numfound]+1[/math][/append][/search][closedatabase chatroom.db] In the middle of the screen there are three frames. One reloads every 5 seconds. It checks the two databases for a new quantity, meaning every time a user enters or leaves the chatroom, it notices a difference in number of db entries (Code Below) The other two frames are the user listing, and message listing which contain no WebCat code at all. They are just refreshed whenever they need to be, called by the listed code below That is the meat of the chatroom, hopefully I posted the code that has the error in it, if there is one. I know there's a lot here, but I thank you for taking a look in it. I did take out some of the references to the site that it is hosted on, but the majority is there. Thanks again, jeff ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Chatroom with Webcatalog (Banahan 2011)
  2. Re: [WebDNA] Chatroom with Webcatalog (Stuart Tremain 2011)
  3. Re: [WebDNA] Chatroom with Webcatalog (Olin Lagon 2011)
  4. Re: [WebDNA] Chatroom with Webcatalog (Banahan 2011)
  5. Re: [WebDNA] Chatroom with Webcatalog (christophe.billiottet@webdna.us 2011)
  6. Re: [WebDNA] Chatroom with Webcatalog (aaronmichaelmusic@gmail.com 2011)
  7. Re: [WebDNA] Chatroom with Webcatalog (Olin Lagon 2011)
  8. [WebDNA] Chatroom with Webcatalog (Banahan 2011)
  9. Re: Chatroom (Nicolas Verhaeghe 2000)
  10. Re: Chatroom (Jeff Homan 2000)
  11. Re: Chatroom (Testulf 2000)
  12. Re: Chatroom (Jeff Homan 2000)
  13. Re: Chatroom (Jesse Proudman (Lists Account) 2000)
  14. Re: Chatroom (Jeff Homan 2000)
  15. Re: Chatroom (Jesse Proudman (Lists Account) 2000)
  16. Chatroom (Jeff Homan 2000)
  17. Re: Chatroom (Joseph D'Andrea 2000)
  18. Re: Chatroom (Jesse Proudman (Lists Account) 2000)
  19. Chatroom (Jeff Homan 2000)
  20. Re: WebCat chatroom (natasha 1997)
  21. Re: WebCat chatroom/hyperboard (grichter@panavise.com (Gary Richter) 1997)
  22. Re: WebCat chatroom (John S. Winningham 1997)
  23. WebCat chatroom (Allan Morrison 1997)
Here's what I have with a detailed breakdown, and I restated the problem that I'm having:I have made a chatroom based on webcatalog, javascript, and frames. Basically what happens is every five seconds it checks for a new message, or a new user, if it finds one, it refreshes the respective frames. The problem I'm having is that it seems to be very unstable. It will freeze the server once you have a couple people in the chatroom. It is very database intensive, so I'm sure there is alot going on, on the server side. It is being hosted on a Mac, and it's using Web Catalog 3.0. If anyone has any ideas or thoughts as to why I'm having so much trouble, please reply to this message. login screen: [hideif [lookup db=heartsgalore.db&value=[pin]&lookinfield=PIN&returnfield=MyPass1¬found=NotFound]![pword]] [showif [lookup db=[pin]-purchased.db&value=[pin]&lookinfield=PIN&returnfield=PINsPurchased¬found=NotFound]^-member] [search db=chatroom/chatroom.db&recordnosort=1&recordnodir=as&nepinnamedata=12Marklar3][append db=chatroom/userlist.db]user=[pin]&enteredrecordno=[math][numfound]+1[/math][/append][/search] [closedatabase chatroom/chatroom.db] [closedatabase chatroom/userlist.db] [redirect chatroom.tpl?pin2=[pin]] [/showif] [/hideif] [closedatabase heartsgalore.db]

If you think that it's possible you entered your password incorrectly, hit the back button and try again.

That is where the login and pword are both checked, if verified, they are sent to the chatroom...The chatroom is broken into 5 pages.The top frame is static - just the header image and onUnload code to remove the user from the database when they exit the chatroom.The bottom frame is the message entry screen which reloads every time a message is sent from your computer. Here's that code: [text]pin3=[username][/text]
Enter Message:
[search db=chatroom.db&recordnosort=1&recordnodir=as&nepinnamedata=12Marklar3][append db=chatroom.db]pinname=[username]&message=[msgtxt]&recordno=[math][numfound]+1[/math][/append][/search][closedatabase chatroom.db] In the middle of the screen there are three frames. One reloads every 5 seconds. It checks the two databases for a new quantity, meaning every time a user enters or leaves the chatroom, it notices a difference in number of db entries (Code Below) The other two frames are the user listing, and message listing which contain no WebCat code at all. They are just refreshed whenever they need to be, called by the listed code below That is the meat of the chatroom, hopefully I posted the code that has the error in it, if there is one. I know there's a lot here, but I thank you for taking a look in it. I did take out some of the references to the site that it is hosted on, but the majority is there. Thanks again, jeff ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Jeff Homan

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] Error: Can't open order file. Ignoring [OrderFile] context Error: Error: expected [/APPLICATION], but found [/!] instead[/!] (2011) SSI *nix 4.5 build (2002) Auto-closing of databases (was DON'T use old cart file!) (1997) Log-in Scheme (2003) [OT] Sybase vs. Pervasive SQL for WebDNA integration? (2005) Re:Dumb Question about Docs (1997) Newbie problem blah blah blah (1997) verification (correction) (2004) Moment of Thanks (1997) CommandSecurity? (1997) Emailer.Out (1998) processing .html pages (2001) HideIf and SKU (2000) Email notification to one of multiple vendors ? (1997) Problem with a search context (2005) multi-paragraph fields (1997) 2nd WebCatalog2 Feature Request (1996) Multi-processor Mac info ... (1997) separate by mont (search) (2002) variable value locked when passed to include (2001)