how to open popup window on both side using javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shakthi712
    New Member
    • Mar 2010
    • 1

    how to open popup window on both side using javascript

    hi friends

    I am developing a chat application here i have kept general chat room here multi users can chat with each other but now i want one to one chat in my application, when logged user click on any user in the user list, one pop up window should be opened on the user computer and another pop up window should be opened in the remote users computer , how can i achieve this , any help will be appreciated...
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Well when userA clicks on userB to start the private chat it should open a new window.

    When userA sends a message to userB, a link/prompt should probably appear on userB's screen so that you can let them choose whether or not to open the private chat in a new window.

    This would prevent frustrations with windows opening unexpectedly while the user is using the application.

    But if you don't want this, then send the JavaScript to the browser when page checks the server for a message. Execute the JavaScript on page load (or if you're using Ajax have it execute when the Ajax request is finished).

    -Frinny

    Comment

    Working...