473,939 Members | 7,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Control the size and position of a popup window.



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)

{
popUp = window.open('Af Medarbejder.asp x' ,

'test',

'width=screen.w idth,height=15, left=0,top=700, ');

}

height remains approximately 100 no matter what .

Can someone explain what i'm doing wrong?

I also want my window to remain on top always.

How di i do this?

Many thanks in advance

JB
Nov 19 '05 #1
2 6591
CAC
Try this... You can of course set the appropriate options to make the new
window do whatever you like by way of the DOM. My snippet below should center
the popup window on the screen.

//Open aspx page in new window

function popup()
{
var popup_width=685
var popup_height=45 0
var screen_width=wi ndow.screen.wid th
var screen_height=w indow.screen.he ight
var popup_left=Math .round((screen_ width-popup_width)/2)
var popup_top=Math. round((screen_h eight-popup_height)/2)

window.open("TA RGET_URL_GOES_H ERE +
"","","height=" +popup_height+" ,width="+popup_ width+",menubar =0,resizable=no ,left="+popup_l eft+",top="+pop up_top+",scroll bars=no,status= no,titlebar=no, toolbar=no");
}

"Jensen bredal" wrote:


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)

{
popUp = window.open('Af Medarbejder.asp x' ,

'test',

'width=screen.w idth,height=15, left=0,top=700, ');

}

height remains approximately 100 no matter what .

Can someone explain what i'm doing wrong?

I also want my window to remain on top always.

How di i do this?

Many thanks in advance

JB

Nov 19 '05 #2
>>
Many thanks in advance

JB


I have the same problem as before.

Height stay the same when it is set to a certain value.
Could this be a setting in IE?
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
18337
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event, but I can't figure out how to get the popup to appear in the same browser window. In this code the user is presented with "Yes", "No" or "Cancel". Yes allows the popup to spawn a window, No should load the popup in the same window and Cancel...
3
6782
by: coolsti | last post by:
I need some help here. I am making an application which allows a user to look at a series of picture files one at a time, and enter the outcome of various visual tests to a database. The application is based on mysql and php on a remote server, and is accessed by the user via a web browser, primarilly IE. The image file names are built up by the server side php scripts, and so a URL for the image file is created, but the file itself is...
9
2552
by: Viken Karaguesian | last post by:
Hello all, I just discovered this NG, so you'll probably be getting some questions that have been brewing inside me for a while :>) I'm just an amateur who enjoys making websites. I use FrontPage (please don't kill me!) to do a lot of my web design. Lately, though, I've been doing more CSS based stuff and more manaul coding. Here's my latest question that's been brewing: I'd like to use FrontPage's "Auto Thumbnail" utility, but it has...
16
3081
by: DFS | last post by:
If you're listening, I want the middle of the calendar (showing 1 month) to open below the cursor position. It currently opens just to the right and below the cursor position. I hunted through the code, but can't determine what to alter. Very nice piece of work, by the way. Thanks
3
6842
by: MikeY | last post by:
Hi Everyone, I am working in C#, windows forms.My question is this. All my button dynamic controls properties are present and accounted for except for the"FlatStyle" properties. I can't seem to figure out, if there is a way of using polymorphic way (if that is a word) of doing this particular property. A sample of my code is as follows: DynamicControls.ButtonControl(this,btnSearchByName, new Point(5, 75), new Size(95, 20),...
1
5419
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for that), the popup window will have also a text box and a button. when the User click on the button the value on the textbox will be send back to the textbox on My_WUC. I hope I was clear off what I want to do. I've been searching for some ideas...
7
2073
by: Michael Turner | last post by:
Hi Guys I am in the process of developing a control, and will need it to "popup" on the users for on the press of a button ask for some input and then chuck the information back to the form. Does anyone know how I can develop this. Thanks, Mike.
5
2313
by: rockdale | last post by:
Hi, I tried to search web for an non-popup calendar control, (like javascript calendar) but could not find a good solution. Most solutions are popup another window and show the calendar, then close and assign the date back to the main window when user selected a date. Also find some examples using div show/hide but could not maintain its state when user navigate to next month. Does anyone have a hyperlink to a good example? Does...
4
1997
by: Ronald Raygun | last post by:
I have a form on an HTML page with the usual user name, email etc. I want to be able to display a popup window (callout?) when a text input control element is clicked. For example, for the form: <form action="something.php" method="post"> <label for="uname">User Name</label> <input type="text" id="uname"/> <input type="image" src="go.gif"/>
0
10134
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
11525
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...
0
9858
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
8218
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
7389
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
6077
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
6297
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3502
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.