473,796 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display Popup Message in Right-Hand Corner of the Screen

Inbaraj
76 New Member
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
16 9305
acoder
16,027 Recognized Expert Moderator MVP
... 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 Recognized Expert Moderator MVP
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 Recognized Expert Moderator MVP
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
Romulo NF
54 New Member
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
Jul 2 '07 #14
arnabc
6 New Member
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
Jul 3 '07 #15
gits
5,390 Recognized Expert Moderator Expert
;) 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
Romulo NF
54 New Member
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
18018
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 home page during their time using the browser. However, if the user closes the browser, then reopens, the pop-up should appear again. (you may have guessed that this will be used for public access pc's.) I want to try as best I can to catch...
10
2755
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" id="tk"> <h1>Themenk&uuml;chen</h1> <p>
1
5232
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 form displaying varying numbers of records depending on the crietria selected on the main form. Must be missing something obvious - but can't get it to work no matter what combination of property settings is used for both the pop up form itself...
3
3976
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 delete a record in this subform. When I switched modal off and tried to delete a record from the list, I deleted a record on another form (below the popup form).
1
1625
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 dozen or so forms. Of course, would need to include the contingency that the database would not necessarily be opened on the set day of the message display. I presume that a separate one-line Yes/No table could function as the switch to display...
1
1365
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 account, which method can use in ASP.net environment? Thanks a lot
1
2101
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 button. However , I need to display this popup only if some statement is TRUE , otherwise I will update database and redirect to another page . How can I do this ?
2
3269
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 validated my HTML and CSS code. 1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for...
5
1977
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 and CSS code. 1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for the same...
5
14351
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 three links for three different pages. Now problem is, I have 2 main divs on page. in 1st div this gridview comes. and second main div in which i am displaying some other data. Now in 1st div, i have gridview.when i click on last and second last...
0
9524
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10449
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10168
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9047
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.