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:
sorting and summarizing (1998)
shipCost (2000)
printing twice? and fix (1997)
Updating checkboxes made easy !!! (1998)
PC site chck pls (2003)
Help! WebCat2 bug (1997)
Searching Multiple DBs (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
[WebDNA] How to stop cutting a word (2008)
&FieldNametype=time unnecessary? (2000)
I give up!! (1997)
5.0 Pricing (2003)
Couple of questions II (1999)
setting taxable to true (1997)
Help name our technology! I found it (1997)
Cart # Starting at 1000 (2000)
[WebDNA] WebDNA 4.5.1 process DBServer.exe memory allocation (2008)
Re:my First Ship table (1998)
Re[2]: WebCatalog keeps quiting on Solaris, and support isn' (2000)
Feature Request (1999)