473,412 Members | 5,714 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,412 software developers and data experts.

hiding window.open

19
Hi friends,
I am opening a popup window with window.open method. I want to hide it, someting like visible=false. is there some property or method available which solve this purpose.

Thanks,
Amit
Jan 24 '07 #1
9 10304
mrhoo
428 256MB
You cannot open a new window with javascript that is hidden, positioned off screen, or smaller than a minimum size.
Jan 24 '07 #2
acoder
16,027 Expert Mod 8TB
Hi friends,
I am opening a popup window with window.open method. I want to hide it, someting like visible=false. is there some property or method available which solve this purpose.

Thanks,
Amit
Why do you want to hide the window? Can you not just close it and open it again?
Jan 24 '07 #3
akg
19
I am opening a url (asp.net page) from window.open which I am resizing if the loaded url document is bigger or smaller than the opened window, but my user didn't liked this resizing of the window. so, I thought if i could open the window with hide attribute set initially and after resizing if I could display it then users will not see the resizing effect.

any suggestions ?
Jan 24 '07 #4
acoder
16,027 Expert Mod 8TB
You don't need to resize the window, you can open the window the correct size in the first place.
Expand|Select|Wrap|Line Numbers
  1. window.open('yourpage.asp','','width=200,height=100')
  2.  
See this page for more info.
Jan 24 '07 #5
akg
19
problem is my asp.net page will be of varying width and height and before calling in window.open method I can't get its full height and width.

Amit
Jan 25 '07 #6
acoder
16,027 Expert Mod 8TB
Then how will you get the height and width after calling the page?
Jan 25 '07 #7
abctech
157 100+
problem is my asp.net page will be of varying width and height and before calling in window.open method I can't get its full height and width.

Amit
Well even if you donot know the height and width in advance still you can specify a certain height and width and keep scrollbars, will that help?
[HTML]window.open(url,"mywindow","location=1,status=1,sc rollbars=1,width=500,height=300");[/HTML]
Jan 25 '07 #8
akg
19
Then how will you get the height and width after calling the page?
document.getElementById(id).offsetWidth
Jan 25 '07 #9
akg
19
Well even if you donot know the height and width in advance still you can specify a certain height and width and keep scrollbars, will that help?
[HTML]window.open(url,"mywindow","location=1,status=1,sc rollbars=1,width=500,height=300");[/HTML]

no abctech, I don't have to show scrollbar to the users.
Jan 25 '07 #10

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

Similar topics

15
by: Code Monkee | last post by:
How can the toolbar and menubar be hidden in IE? When opening the window via javascript I can specify 'toolbar=no,menubar=no', which works fine. However if the window already exists how can I...
2
by: Greg Williams | last post by:
Anyone know a way to hide all IE's toolbars when and ASP.NET page loads?? should I do this with Javascript or can I use C# to do this. thanks
7
by: Danielb | last post by:
I want my application to run most of the time as just an notify icon visible in the system tray, with some dialogs windows that open if the user selects an option from the context menu on the tray...
4
by: hazz | last post by:
What are the basic mechanisms behind an auto-hiding window which moves out of the way when not needed and flys back out when clicked on. Is this real complicated stuff? Thanks, -hazz
11
by: Kevin | last post by:
I've got a timer on my MDI parent form. If there's no mouse movement for a set number of minutes, the Visible property of all open forms is set to False and the Log On form is displayed. I could do...
4
by: Jon | last post by:
Hi, I am calling the function showpopupWindow(item) to open and write a popup window. When testing in IE6 locally the popup window displays my text in both the title and status bars but when...
3
by: G Gerard | last post by:
Hello I am using MSACCESS 2000 I can hide Tables from appearing in the Database Window with the following code: For Each tbldef in MyDB.TableDefs tbldef.Attributes = dbHiddenObject Next...
3
by: Andy Lim | last post by:
Hi all, In my recent asp.net (2.0) project, I want to give a desktop-application look and feel to my users. I think I'll do it by hiding the browser's default menu & toolbar right from the...
5
by: BA | last post by:
Hi there I am trying to write an "application" in Access 2000, that displays a front end and allows the user to interact with the database without seeing Access loaded, in the background, nor on...
162
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
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...
0
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...
0
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,...

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.