473,398 Members | 2,113 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,398 software developers and data experts.

detect browser text resize, possible?

I'd like to detect when the user resizes the text in the browser, is
there a specific event I can watch for?
Jul 23 '05 #1
8 4750
mscir wrote:
I'd like to detect when the user resizes the text in the browser, is
there a specific event I can watch for?


No.
--
Zif
Jul 23 '05 #2
mscir wrote:
I'd like to detect when the user resizes the text in the browser, is
there a specific event I can watch for?


Relevant thread:

http://groups.yahoo.com/group/wdf-dom/message/3816

Interesting application (IE 5+ only):

<html>
<head>
<title>feh</title>
</head>
<body>
<div style="
whatever:expression(this.h&&this.h!=this.offsetHei ght?
alert(this.offsetHeight):false,this.h=this.offsetH eight);
position:absolute">
&nbsp;</div>
</body>
</html>

Jul 23 '05 #3
RobB wrote:
mscir wrote:
I'd like to detect when the user resizes the text in the browser, is
there a specific event I can watch for?


Relevant thread:
http://groups.yahoo.com/group/wdf-dom/message/3816
Interesting application (IE 5+ only):
<html>
<head>
<title>feh</title>
</head>
<body>
<div style="
whatever:expression(this.h&&this.h!=this.offsetHei ght?
alert(this.offsetHeight):false,this.h=this.offsetH eight);
position:absolute">
&nbsp;</div>
</body>
</html>


Interesting approach, didn't let me resize the page though.

Thanks,
Mike
Jul 23 '05 #4
RobB wrote:
mscir wrote:
I'd like to detect when the user resizes the text in the browser, is
there a specific event I can watch for?

Relevant thread:

http://groups.yahoo.com/group/wdf-dom/message/3816


A 2 year old message suggesting an IE 5-only function (a
whopping 4.3% of surfers[1]) and an entirely unreliable
suggestion to use getComputedStyle() on a window Resize event...

Do you get a spotters fee over at Yahoo! Groups?
1 <URL:http://www.w3schools.com/browsers/browsers_stats.asp>

--
Zif
Jul 23 '05 #5
Zifud wrote:
RobB wrote:
mscir wrote:
I'd like to detect when the user resizes the text in the browser, isthere a specific event I can watch for?

Relevant thread:

http://groups.yahoo.com/group/wdf-dom/message/3816


A 2 year old message suggesting an IE 5-only function (a
whopping 4.3% of surfers[1]) and an entirely unreliable
suggestion to use getComputedStyle() on a window Resize event...


What's the statute of limitations on those...2 weeks?

IE 5+ includes IE 5.5, IE 6...slightly higher percentage.

I didn't endorse everything in that thread, just ran across it recently
on a search for something else, and thought the OP might be interested.
Do you get a spotters fee over at Yahoo! Groups?


Uh-uh. Does your issuing a one-word unconditional reply to a post here
close the thread?

Jul 23 '05 #6
mscir wrote:
I'd like to detect when the user resizes the text in the browser, is
there a specific event I can watch for?
Interesting approach, didn't let me resize the page though.


That's what you want to do? (It always helps to describe the problem as well
as the barrier that is preventing you from implementing the solution you
have come up with).

Just define your lengths in units relative to the font size in the first
place:

div#navigation {
width: 35em;
}

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #7
David Dorward wrote:
mscir wrote:
I'd like to detect when the user resizes the text in the browser, is
there a specific event I can watch for?

Interesting approach, didn't let me resize the page though.


That's what you want to do? (It always helps to describe the problem as well
as the barrier that is preventing you from implementing the solution you
have come up with).

Just define your lengths in units relative to the font size in the first
place:

div#navigation {
width: 35em;
}


Sorry I wasn't clearer in my original post. I'd like a cross-browser
approach that lets me see when the browser text is resized, e.g. when
the Netscape 7.2 menu choice: 'View > Text Zoom' setting is changed,
or when the IE 6 menu choice: 'View > Text Size' setting is changed.

Barrier to solving: I haven't sen any kind of event trapping that will
work (I plead ignorance).

Mike
Jul 23 '05 #8
mscir wrote:
Just define your lengths in units relative to the font size in the first
place: div#navigation {
width: 35em;
}
Barrier to solving: I haven't sen any kind of event trapping that will
work (I plead ignorance).


You don't need to trap the event. If you define your lengths using units
relative to the font size, then they will change size when the font size
changes.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #9

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

Similar topics

157
by: Dennis | last post by:
Is there some way --using, say, DOM or javascript-- to detect the current pixel width and/or height of a relatively sized table or of one of its columns or rows. I'm going to be writing javascript...
2
by: Matt | last post by:
I posted a question before regarding the offset positions when I used CSS. Some people suggested I should use percentage instead of pixels? I tried many different ways, but the position still...
4
by: Matt | last post by:
When the user resize the browser, the "Frequently Used Link" and "Table 1" and "Table 2" will shift to the left hand side, but table position is unchanged. I really have no idea how to fix that. I...
2
by: rams.kakara | last post by:
hi, My page have background image,on that image have more images and text. My problem is whenever resize browser that images are not resized and also not moved correct place .(i.e look not like...
4
by: David Logan | last post by:
Hello, I am trying to open a window with a graphic in it and have the window be exactly the correct size of the image. Is there anyway to do this that will work on any browser on any OS???? ...
4
by: mscir | last post by:
Is it possible to detect whether a protocol client-side on any given user's machine? Thanks, Mike
4
by: ire2874 | last post by:
I'm trying (unsuccessfuly) to resize a browser window in Netscape (v8) using javascript - There are 2 methods I am trying to use below but neither works. Any tips? I only need this for...
4
by: vbGansta | last post by:
Hi there, What is the best way to detect when a user changes the text size of their browser. I need to Resize/Move things when they do this so grids and such don't overlap each other. Thanks...
7
by: Bill H | last post by:
When I do website design I have my screen (on a PC) set for 1600 x 1200 or greater resolution so that I can have as many windows open as I need and not have to flip between them. The issue I have...
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
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.