473,386 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Display Popup Message in Right-Hand Corner of the Screen

Inbaraj
76
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...
Jun 29 '07 #1
16 9249
Inbaraj
76
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...
Jun 29 '07 #2
Post some piece of code and we will help you out!
What are you doing till now?
Jun 29 '07 #3
Inbaraj
76
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
Jun 30 '07 #4
gits
5,390 Expert Mod 4TB
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
Jul 1 '07 #5
kovik
1,044 Expert 1GB
Make a big box and float it right. I'm not seeing what about this you couldn't have done.

What have you tried?
Jul 1 '07 #6
gits
5,390 Expert Mod 4TB
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
Jul 1 '07 #7
kovik
1,044 Expert 1GB
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.
Jul 1 '07 #8
gits
5,390 Expert Mod 4TB
... 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 ...
Jul 1 '07 #9
acoder
16,027 Expert Mod 8TB
Threads merged. Please do not double post.

Changed thread title too to something more meaningful.
Jul 2 '07 #10
acoder
16,027 Expert Mod 8TB
... 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.
Jul 2 '07 #11
acoder
16,027 Expert Mod 8TB
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.
Jul 2 '07 #12
acoder
16,027 Expert Mod 8TB
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.
Jul 2 '07 #13
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.getElementsByTagName("body")[0]
yourElementHere.style.left = pageBody.clientWidth - this.holder.offsetWidth + "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
Jul 2 '07 #14
arnabc
6
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.getElementsByTagName("body")[0]
yourElementHere.style.left = pageBody.clientWidth - this.holder.offsetWidth + "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
Jul 3 '07 #15
gits
5,390 Expert Mod 4TB
;) short summary: with 'div's (and other ccs-based 'quasi'-popups) you are bound to the actual browser-window that handles them ... a popup is a new window (and has its own window-context too) ... its up to you which possiblity you prefer or have to use that what the feature-request requires ...

kind regards ...
Jul 3 '07 #16
how about an absolute div with right:0px and top:0px
Well im thinking about something like the gmail interface like he said, and there the holder stays always on the right bottom part!

Using absolute (right 0 / top 0) is a way to place the element on the top right side of the screen, but what you gonna do when you scroll the page?

You will need some js to bring the element down!
(or you can make some tests with position fixed, but may face some problems with specific browsers)
Jul 3 '07 #17

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: chrism | last post by:
Hello, I have a pop-up window that I would like to appear in front of the browser home page when a user opens IE. Problem is, I'd like it to never appear again if the user navigates back to the...
10
by: Oliver | last post by:
Hello, i'm having trouble with a css type popup. It's not doing what i want in Mozilla 1.6 and in IE6.0 it's not working at all. The html code looks like this: <div class="themenkueche"...
1
by: Robert | last post by:
Need some help with this please. Is there a way to display more than one record at a time on a popup form? I have a main form that has a button that triggers a popup form that is a continuous...
3
by: Uwe Range | last post by:
Hi to all, I am displaying a list of records in a subform which is embedded in a popup main form (in order to ensure that users close the form when leaving it). It seems to be impossible to...
1
by: Dalan | last post by:
I would like to incorporate a feature in an Access 97 database that would display popup messages at predetermined times in the future - say every three months. This would be applied to several of a...
1
by: JL | last post by:
Hi all, I want to display a processing result after processed by popup windows, for example, i want to display the login name and login password in pop up window after user applied the new...
1
by: Orit | last post by:
I have a question regarding usage of AJAX Control Toolkit's Popup Control Extender . I am using the Popup Control Extender to display a popup dialog ( panel ) from my asp.net page on click of a...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
5
by: wreed06 | last post by:
I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully validated my HTML...
5
by: dipalichavan82 | last post by:
I am working on sharepoint application. I am displaying some data in gridview. when I right click on gridcell, context menu opens in a div. this div hides onmouseout event. In this div i have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.