Display Popup Message in Right-Hand Corner of the Screen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Inbaraj
    New Member
    • Apr 2007
    • 76

    Display Popup Message in Right-Hand Corner of the Screen

    HI....

    This is Inbaraj... I am doing an Internet Chat program... I that if a person who enter into that portal a popup message should be displayed like in google talk.. In right hand side a popup window will be displaying saying that person is online..

    I dont know how to bring that pop window in the righ handside corner..

    can any one give me the sample code for that how to bring that.....

    Thanks in advance..
    reg
    Inbaraj...
  • Inbaraj
    New Member
    • Apr 2007
    • 76

    #2
    Popup Message...... Help me out...........

    Hi....

    This is Inbaraj... I am doing an Internet Chat program... I that if a person who enter into that portal a popup message should be displayed like in google talk.. In right hand side a popup window will be displaying saying that person is online..

    I dont know how to bring that pop window in the righ handside corner..

    can any one give me the sample code for that how to bring that.....

    Thanks in advance..
    reg
    Inbaraj...

    Comment

    • Romulo NF
      New Member
      • Nov 2006
      • 54

      #3
      Post some piece of code and we will help you out!
      What are you doing till now?

      Comment

      • Inbaraj
        New Member
        • Apr 2007
        • 76

        #4
        Originally posted by Romulo NF
        Post some piece of code and we will help you out!
        What are you doing till now?
        Sir..

        I need a popup message in right-hand corner of the scree... as it comes in Gtalk or Yhaoomessenger. .....

        reg
        inbaraj

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5390

          #5
          hi ...

          ok ... you want the popup-window there ... do you have something done? the idea is to retrieve the screen-size of the users sreen, then use it to open the window at the desired position ... when you have tried something ... post your try and ask specific questions in case you have some ... then we may help you with those problems ...

          kind regards

          Comment

          • kovik
            Recognized Expert Top Contributor
            • Jun 2007
            • 1044

            #6
            Make a big box and float it right. I'm not seeing what about this you couldn't have done.

            What have you tried?

            Comment

            • gits
              Recognized Expert Moderator Expert
              • May 2007
              • 5390

              #7
              Originally posted by volectricity
              Make a big box and float it right.
              i don't know yahoomessenger or gtalk ... but i think the request is to open a small popup-window that notifies the user when a message is incoming or a buddy-list-member logs in ... like all common messengers do ... a small popup in the right bottom corner of the screen (thunderbird uses this too when notifying that new messages have arrived) ... that is outside of the 'messenger-application-window' ... so as far as i would see and assuming im right with the above understatement of the request ... there is no other possibility as to open a new window at the desired position? ...

              kind regards

              Comment

              • kovik
                Recognized Expert Top Contributor
                • Jun 2007
                • 1044

                #8
                Originally posted by gits
                i don't know yahoomessenger or gtalk ... but i think the request is to open a small popup-window that notifies the user when a message is incoming or a buddy-list-member logs in ...
                Oh. I've never used them before. I thought he was thinking more in terms of web apps than desktop.

                Comment

                • gits
                  Recognized Expert Moderator Expert
                  • May 2007
                  • 5390

                  #9
                  ... yes he does ... and i think he wants it to look like an desktop-app ... thats the general goal of a lot of todays webapps that use ajax etc. ...

                  kind regards ...

                  Comment

                  • acoder
                    Recognized Expert MVP
                    • Nov 2006
                    • 16032

                    #10
                    Threads merged. Please do not double post.

                    Changed thread title too to something more meaningful.

                    Comment

                    • acoder
                      Recognized Expert MVP
                      • Nov 2006
                      • 16032

                      #11
                      Originally posted by gits
                      ... yes he does ... and i think he wants it to look like an desktop-app ... thats the general goal of a lot of todays webapps that use ajax etc. ...
                      Very true. Unfortunately, that means that sometimes some people want to do the impossible as far as the browser is concerned.

                      Comment

                      • acoder
                        Recognized Expert MVP
                        • Nov 2006
                        • 16032

                        #12
                        Originally posted by gits
                        hi ...

                        ok ... you want the popup-window there ... do you have something done? the idea is to retrieve the screen-size of the users sreen, then use it to open the window at the desired position ... when you have tried something ... post your try and ask specific questions in case you have some ... then we may help you with those problems ...

                        kind regards
                        Retrieve the screen size using the Screen object. I'm not sure how many properties are supported by all browsers, but you probably only need availHeight and availWidth.

                        Comment

                        • acoder
                          Recognized Expert MVP
                          • Nov 2006
                          • 16032

                          #13
                          Originally posted by Inbaraj
                          I need a popup message in right-hand corner of the scree... as it comes in Gtalk or Yhaoomessenger.
                          You need to make a start on it first. Once you get stuck, post here again with your problem.

                          One other possibility (and a preferred one, IMO), is to display the popup within the browser using DHTML. You could even have it moving up from the bottom until all of it can be seen. This way you have more control over it.

                          Comment

                          • Romulo NF
                            New Member
                            • Nov 2006
                            • 54

                            #14
                            Originally posted by Inbaraj
                            Sir..

                            I need a popup message in right-hand corner of the scree... as it comes in Gtalk or Yhaoomessenger. .....

                            reg
                            inbaraj
                            I understand what you need. But usually people post some piece of code and ask for help with certain parts that arent working properly.

                            Once you have your element ready you will need to do something like

                            pageBody = document.getEle mentsByTagName( "body")[0]
                            yourElementHere .style.left = pageBody.client Width - this.holder.off setWidth + "px"

                            This way you will place your element in the right side!
                            You can do almost the same to put it in the bottom!

                            Good luck

                            Comment

                            • arnabc
                              New Member
                              • Nov 2006
                              • 6

                              #15
                              Originally posted by Romulo NF
                              I understand what you need. But usually people post some piece of code and ask for help with certain parts that arent working properly.

                              Once you have your element ready you will need to do something like

                              pageBody = document.getEle mentsByTagName( "body")[0]
                              yourElementHere .style.left = pageBody.client Width - this.holder.off setWidth + "px"

                              This way you will place your element in the right side!
                              You can do almost the same to put it in the bottom!

                              Good luck

                              how about an absolute div with right:0px and top:0px

                              Comment

                              Working...