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 theproblem 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 newmessage, or a new user, if it finds one, it refreshes the respectiveframes. 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 thechatroom. It is very database intensive, so I'm sure there is alotgoing on, on the server side. It is being hosted on a Mac, and it'susing Web Catalog 3.0. If anyone has any ideas or thoughts as to whyI'm having so much trouble, please reply to this message. login screen: [hideif [lookupdb=heartsgalore.db&value=[pin]&lookinfield=PIN&returnfield=MyPass1¬found=NotFound]![pword]] [showif [lookupdb=[pin]-purchased.db&value=[pin]&lookinfield=PIN&returnfield=PINsPurchased¬found=NotFound]^-member] [searchdb=chatroom/chatroom.db&recordnosort=1&recordnodir=as&nepinnamedata=12Marklar3][appenddb=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, theyare sent to the chatroom...The chatroom is broken into 5 pages.The top frame is static - just the header image and onUnload code toremove the user from the database when they exit the chatroom.The bottom frame is the message entry screen which reloads every timea message is sent from your computer. Here's that code: [text]pin3=[username][/text] [searchdb=chatroom.db&recordnosort=1&recordnodir=as&nepinnamedata=12Marklar3][appenddb=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 every5 seconds. It checks the two databases for a new quantity, meaningevery time a user enters or leaves the chatroom, it notices adifference in number of db entries (Code Below) The other two framesare the user listing, and message listing which contain no WebCat codeat all. They are just refreshed whenever they need to be, called bythe listed code below That is the meat of the chatroom, hopefully I posted the code that hasthe error in it, if there is one. I know there's a lot here, but Ithank you for taking a look in it. I did take out some of thereferences to the site that it is hosted on, but the majority isthere.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:
Here's what I have with a detailed breakdown, and I restated theproblem 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 newmessage, or a new user, if it finds one, it refreshes the respectiveframes. 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 thechatroom. It is very database intensive, so I'm sure there is alotgoing on, on the server side. It is being hosted on a Mac, and it'susing Web Catalog 3.0. If anyone has any ideas or thoughts as to whyI'm having so much trouble, please reply to this message. login screen: [hideif [lookupdb=heartsgalore.db&value=[pin]&lookinfield=PIN&returnfield=MyPass1¬found=NotFound]![pword]] [showif [lookupdb=[pin]-purchased.db&value=[pin]&lookinfield=PIN&returnfield=PINsPurchased¬found=NotFound]^-member] [searchdb=chatroom/chatroom.db&recordnosort=1&recordnodir=as&nepinnamedata=12Marklar3][appenddb=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, theyare sent to the chatroom...The chatroom is broken into 5 pages.The top frame is static - just the header image and onUnload code toremove the user from the database when they exit the chatroom.The bottom frame is the message entry screen which reloads every timea message is sent from your computer. Here's that code: [text]pin3=[username][/text] [searchdb=chatroom.db&recordnosort=1&recordnodir=as&nepinnamedata=12Marklar3][appenddb=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 every5 seconds. It checks the two databases for a new quantity, meaningevery time a user enters or leaves the chatroom, it notices adifference in number of db entries (Code Below) The other two framesare the user listing, and message listing which contain no WebCat codeat all. They are just refreshed whenever they need to be, called bythe listed code below That is the meat of the chatroom, hopefully I posted the code that hasthe error in it, if there is one. I know there's a lot here, but Ithank you for taking a look in it. I did take out some of thereferences to the site that it is hosted on, but the majority isthere.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)