Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Window problem

Window problem

Scheduled Pinned Locked Moved ASP.NET
helpjavascriptlounge
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SreejithAchutan
    wrote on last edited by
    #1

    If a user click on a control then a window will open using javascript.If the same user click on the same control then the window will not open .How is it possible,like in gmail chatting.In gmail when an online user is clicked thn he can chat with the user.again he tried to click the same user then it willnot open the window.how is it possible.please help.Thanks

    J 1 Reply Last reply
    0
    • S SreejithAchutan

      If a user click on a control then a window will open using javascript.If the same user click on the same control then the window will not open .How is it possible,like in gmail chatting.In gmail when an online user is clicked thn he can chat with the user.again he tried to click the same user then it willnot open the window.how is it possible.please help.Thanks

      J Offline
      J Offline
      John ph
      wrote on last edited by
      #2

      Window.open() takes a optional argument that specifies the windowName. Give a windowName when you do a window.open(). Two Windows cannot be opened with the same name. window.open('PagePath','WindowName','WindowAttributes');

      - Regards -
         JON


      Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


      S 1 Reply Last reply
      0
      • J John ph

        Window.open() takes a optional argument that specifies the windowName. Give a windowName when you do a window.open(). Two Windows cannot be opened with the same name. window.open('PagePath','WindowName','WindowAttributes');

        - Regards -
           JON


        Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


        S Offline
        S Offline
        SreejithAchutan
        wrote on last edited by
        #3

        I gave it but if there is 2 or more users then if we call the window.open function with name specifying ,the other users also cant open the window.How we overcome that query.I want that.

        J 1 Reply Last reply
        0
        • S SreejithAchutan

          I gave it but if there is 2 or more users then if we call the window.open function with name specifying ,the other users also cant open the window.How we overcome that query.I want that.

          J Offline
          J Offline
          John ph
          wrote on last edited by
          #4

          Open the window with the UserName as WindowName.

          - Regards -
             JON


          Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


          S 1 Reply Last reply
          0
          • J John ph

            Open the window with the UserName as WindowName.

            - Regards -
               JON


            Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


            S Offline
            S Offline
            SreejithAchutan
            wrote on last edited by
            #5

            Is the username specification is possible in javascript.If possible how it will apply.We call the username by authentication purpose.This window is used for chatting purpose.That meanss in gmail like.if the user is online thn he can chat with other online users,if the user click on a online user once thn the event of onclick is disabled in gmail .We want like that.

            N J 2 Replies Last reply
            0
            • S SreejithAchutan

              Is the username specification is possible in javascript.If possible how it will apply.We call the username by authentication purpose.This window is used for chatting purpose.That meanss in gmail like.if the user is online thn he can chat with other online users,if the user click on a online user once thn the event of onclick is disabled in gmail .We want like that.

              N Offline
              N Offline
              Navdeep Bhardwaj
              wrote on last edited by
              #6

              Basically you need to give distinct names to each window being opened. So in chat window if you click on member1 then name it member1 and if you click on member2 name it member2 and so on. You can simply pass the selected member name to the function to open a window.

              Nav

              1 Reply Last reply
              0
              • S SreejithAchutan

                Is the username specification is possible in javascript.If possible how it will apply.We call the username by authentication purpose.This window is used for chatting purpose.That meanss in gmail like.if the user is online thn he can chat with other online users,if the user click on a online user once thn the event of onclick is disabled in gmail .We want like that.

                J Offline
                J Offline
                John ph
                wrote on last edited by
                #7

                SreejithAchutan wrote:

                Is the username specification is possible in javascript.If possible how it will apply.We call the username by authentication purpose.This window is used for chatting purpose.That meanss in gmail like.if the user is online thn he can chat with other online users,if the user click on a online user once thn the event of onclick is disabled in gmail .We want like that.

                Opening the window is the problem or writting the Code using Javascript is the problem??? Doesn't you chat application display's the list of User's logged on?

                - Regards -
                   JON


                Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups