Menu

webchat

Help
2004-11-08
2013-04-09
  • Nobody/Anonymous

    I'm stuck w/ a problem and need some ideas. I'm making a simple webchat but i can't figure out how to mix js and php in order to send a mesage to a chan w/ a form.

    I have tried w/ iframes and $_SESSION var, but it's actually posible to mix a client side lang w/ a server side one? how would you do it?

    I have googled for hours and found jsrs which seems a good idea but I _know_ it has to be a better way...

     
    • Nobody/Anonymous

      I'll try to explain my problem better, lets say i have a html w/ 2 iframes, the "chat" window which its always in its loop and never finish loading (until u disconnect from irc) and the other iframe w/ a form (text+submit) for send messages, one thing i have tried is to put the smartirc object in the Session var so y can use _that_ object to send the msg to the irc, but when i submit and the page tries to load it waits for the chat frame to finish loading... got the idea?

      The same happens if y try remote scripting (w/ jsrs).

      what am i doing wrong? have anyone made a webchat using smartirc? I think its grat for making bots but now i have to make this chat work and it would be great if i could use smartirc and irc....

       
    • Nobody/Anonymous

      Have the form write to a segment of shared memory, or use a database backend.  The main form can then check either of those two resources periodically.

       

Log in to post a comment.