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. 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.
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.
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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"...
|
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>...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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...
|
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...
|
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: 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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |