473,432 Members | 1,522 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,432 software developers and data experts.

need a little help with window.createPopup

Hi,

I need to show a popup on my Web Page, so I write:

var oPop = window.createPopup()
oPop.show(x,y,W,H);

I have a problem with W =width and H = height of the popup
window:
When a user goes and changes Text size on their browser,
my text on the popup either does not fit, or have too much
white space around it.

Is there any way to sync the popup window size with the
Text size selected by the user?

Or is there a way to fix a font size on the popup, so that
it does not change when Browser Text size changes?

any help is much appreciated.

Sergey.

Nov 18 '05 #1
2 1950
you can not fix the font size (will vary if the user changes the screen
fonts or installs a different version of the specified font). but client
code can easily change the size of the window to match the content.
<body onload = "if (document.body.scrollHeight - document.body.offsetHeight
10)

window.resizeBy(0,document.body.scrollHeight -
document.body.clientHeight);">
-- bruce (sqlwork.com)

"Sergey Poberezovskiy" <an*************@compros.com.au> wrote in message
news:63****************************@phx.gbl... Hi,

I need to show a popup on my Web Page, so I write:

var oPop = window.createPopup()
oPop.show(x,y,W,H);

I have a problem with W =width and H = height of the popup
window:
When a user goes and changes Text size on their browser,
my text on the popup either does not fit, or have too much
white space around it.

Is there any way to sync the popup window size with the
Text size selected by the user?

Or is there a way to fix a font size on the popup, so that
it does not change when Browser Text size changes?

any help is much appreciated.

Sergey.

Nov 18 '05 #2
Thanks Bruce,

One more thing - how do you get rid of a scrollbar on the
right edge of the popup?

Thanks in advance,

Sergey
-----Original Message-----
you can not fix the font size (will vary if the user changes the screenfonts or installs a different version of the specified font). but clientcode can easily change the size of the window to match the content.

<body onload = "if (document.body.scrollHeight - document.body.offsetHeight
10)

window.resizeBy

(0,document.body.scrollHeight -document.body.clientHeight);">
-- bruce (sqlwork.com)

"Sergey Poberezovskiy" <an*************@compros.com.au> wrote in messagenews:63****************************@phx.gbl...
Hi,

I need to show a popup on my Web Page, so I write:

var oPop = window.createPopup()
oPop.show(x,y,W,H);

I have a problem with W =width and H = height of the popup window:
When a user goes and changes Text size on their browser,
my text on the popup either does not fit, or have too much white space around it.

Is there any way to sync the popup window size with the
Text size selected by the user?

Or is there a way to fix a font size on the popup, so that it does not change when Browser Text size changes?

any help is much appreciated.

Sergey.

.

Nov 18 '05 #3

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

Similar topics

5
by: Angel | last post by:
I created a popup window using createPopup method. Is there anyway to keep the popup open until the user clicks a button within the popup to close the popup window. Right now the popup window will...
3
by: John Walker | last post by:
Hi, I am using a popup window in my application and the problem I'm having is that even though I tell it to display before a while loop, it only displays after the while loop completes. Please...
1
by: Doug | last post by:
Hello, I create a popup window using document.createPopup() Is there anyway to add a script node into this popup? For example I'd like to add <script type="text/javascript"...
1
by: gan | last post by:
here the code, now i want to apply the link for hole popup window, wherever i move the cursor inside the popup window it has to be show as a link how? please help me some one <html> <head>...
12
by: Rahaman sharif | last post by:
Hi All, I have some problem in innerHtml. I have the textbox in innerHtml, In the innerHtml textbox was read only. I want make it to enable. if user enter the text that text will be retrieved, so...
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:
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
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
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...
1
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.