473,651 Members | 3,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to position the popup window for date to centre of the screen

254 Contributor
Hi

For one of my project I have used Calendar Popup of this site http://www.mattkruse.c om/javascript/calendarpopup/simple.html. I want to show the popup in the center of the window or even below the anchor tag which is not coming in my page. I have not made changes the js file. Instead of text "Select" which is coming in the example I have used Image but I don't think this will cause to show my popup window to the top left of the window.

But I want to show the popup window in the center so where in the js file I can make necessary change so that it will come to the center of the screen here is the link of the js file
http://www.mattkruse.c om/javascript/calendarpopup/combined-compact/CalendarPopup.j s
Mar 9 '10 #1
1 2716
RamananKalirajan
608 Contributor
Hi Mukeshram,
Can you please attach the code snippet you had tried. Because in that 'js' there is a function to position the calendar near the anchor. So can you please share the html code you have tried.

Thanks and Regards
Ramanan Kalirajan
Mar 9 '10 #2

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

Similar topics

5
11574
by: Willem van Isselmuden | last post by:
Hello, I've a problem I hava a page with different popup windows, when I hit a link the first one pops up and with the first open i would like to hit the second link in the parent page so the second links pops up a window in the first popup. The way I have it now is working but with each link the size of the popup window should be different but that doesnt happen how can I solve that problem?
38
5047
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find out what i'm doing wrong, and so far it seems i'm doing it the right way. Here's my code...any suggestions would be appreciated. <script language="javascript"> <!-- window.open("256fx/index.htm", "", "height=400, width=600"); //-->
4
7115
by: @(none) | last post by:
Hi, I have a picturegallery that opens in a new window as a defined size, but I would like to open the popup in the middle of the screen. Some browsers do it like that, others don't... Any ideas how I can define the position for the windows to open in?
1
1852
by: Robster | last post by:
I'd to postion a pop up windown to appear in a position relevtive to the centre of the screen, rather than top=200, left=200. Is there any way i can do this? Alternatively i need a script that will position the popup in the same place irellevent of browser window and resolution.... Any ideas?
3
5627
by: anonieko | last post by:
You can try this code: > > > > > <!--- filename: mypage.html ----> <html> ....blah blah blah <script language=JavaScript src=/Javascript/center.js></script>
23
6397
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div align="center">
3
1988
by: ypress | last post by:
Hi. I have a page that contains this simple function: <script language="javascript"> function openPop(url, name, w, h) { var features = ""; features += "scrollbars=no,"; features += "menubar=no,"; features += "resizable=no,";
1
3183
by: ASH | last post by:
Hello all, I'm using the "API: Call Windows File Open/Save Dialog Box" to source the name of a file to open. The Dialog Box when called opens in the top left hand corner of the screen. I have been unable to determine a method of forcing the dialog box to open in the centre of the screen (or any other position on the screen). How can l control the position on the screen in which the dialog box opens ? Any help would be greatly...
2
6581
by: Jensen bredal | last post by:
Hello,I lunch a popup window from an aspx file . The javascript uses window.open . The problem is that the height parameter appears to have a limit and i cannot go below that limit. code below: function Openwindow( postBack) {
1
3832
by: Just Me | last post by:
Hi have a div on my form which contains controls. I normally have this rendered "hidden" and then make it "visible" from a css point of view when i need it. I need to make it appear in the centre of the screen when the user invokes it. However, the window may be resized and scrolled, so I need to know how to position this so its allways in view.
0
8361
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8807
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
8466
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
7299
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...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4144
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...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
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.