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

Retrieve text size???

Hi,
This is in connection to the tread: Re: changing browser text settings??

I am wondering if there is a way to retrieve the browsers text size (not
change! ;-) ) so that I can dynamically resize the size and position of the
layers to accomodate larger than normal text-size settings. I really hope
there is because it would mean not re-writing the whole page (which I'm not
sure how to go about).

the page is here:
http://www.skiwest.com/dev/welcome.htm
the lower left frame is the one i'm concerned about.

I know frames are probably a bad idea, but I think I will keep using them.
This allows people to move through the menu w/out clicking through pages
which takes time (especially if you are on dial-up). It is meant to quicken
the navigation of the site.

Thanks,
Billy
Jul 20 '05 #1
2 1379

"Billy" <bi***@jimtown.org> wrote in message
news:10*************@corp.supernews.com...
Hi,
This is in connection to the tread: Re: changing browser text settings??

I am wondering if there is a way to retrieve the browsers text size (not
change! ;-) )
AFAIK no, there is not.
so that I can dynamically resize the size and position of the
layers to accomodate larger than normal text-size settings. I really hope
there is because it would mean not re-writing the whole page (which I'm not sure how to go about).
You should let the browser resize the size and position of things. That is
what they are good at.
the page is here:
http://www.skiwest.com/dev/welcome.htm
the lower left frame is the one i'm concerned about.
Yep. I looked at this last time and thought is was a bit complicated. On
closer inspection it is *way* too complicated. You are trying so hard to
exactly position and size everything that you have painted yourself into a
corner :-)

Take a rather simpler approach. Making things invisible is not a good way to
remove them from the canvas. They still take up the space they were
allocated. This was your first wrong move and I suspect the rest of the
positioning stuff was to get around this :-)

A far better way to remove something from the canvas is to move it right off
the canvas, with position: absolute; top: -1000px; Then it is right out of
the way. In addition, since it is now out of the normal flow, everything
else around it will be reflowed by the browser. This is exaxtly what your
positioning stuff is attempting to do, however the browser does a much
better job.

You can also then forget about all of the heights and other things you are
doing with the various div's.

Have a look at this:

http://users.bigpond.net.au/rf/test/snow/

It is your original page with the above different emphasis. Everything
(well, the important bits) has top: -1000px, which will be ignored unless
position is absolute. Everything we *want* on the canvas has no position, so
is in the normal layout flow. Everything we do *not* want on the canvas has
position: absolute and is taken out of the flow and removed from the canvas.

Also notice all if the normally hidden stuff is now visible by default and
is made hidden in an onLoad handler. That way the page works even if
javascript is not available. You will get a long page of links but at least
they will be there and available.
I know frames are probably a bad idea,
Yep. Very bad idea.
but I think I will keep using them.
This allows people to move through the menu w/out clicking through pages
Your menu system does not require this. There are no new pages loaded when a
branch of the tree is expanded.
which takes time (especially if you are on dial-up). It is meant to quicken the navigation of the site.


I would think not. If something needs to be loaded it doesn't matter if it
is in a frame or not.

Cheers
Richard.

Jul 20 '05 #2
Richard Formby wrote:
"Billy" <bi***@jimtown.org> wrote in message
news:10*************@corp.supernews.com...
which takes time (especially if you are on dial-up). It is meant to
quicken the navigation of the site.

I would think not. If something needs to be loaded it doesn't matter if it
is in a frame or not.


In the realm of the entire site, it will indded speed up navigation
since the navigation items need not be reloaded everytime the page
changes, which will impact loading time, which in turn impacts the
navigation time.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #3

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

Similar topics

2
by: J_axx | last post by:
Wow I was told this is a grate place for info I did not believe um but I was wrong I have 4 ASP pages on my site & a DB for each page has a form pointing at its DB, I thought this would be the...
2
by: forums_mp | last post by:
I've got an STL class (see below) with two functions to store and retrieve data - msg structs. The "Store" function when called will copy the received message (depending on which message) into...
3
by: lintolawrance | last post by:
sir, i am starting working with php.i done some programs.but now i have one problem.i do a program like to retrieve the name and email from a phpfile to another.but i can't get. this is the code...
8
by: active | last post by:
Guess I'm looking for someone who likes to work difficult puzzles. I can't seem to ever retrieve a palette handle from the clipboard. Below is a simple test program that demonstrates the...
4
by: kang jia | last post by:
hi i am doing mailinglist currently. the code in my first page is like this : : <html> <head> <link rel="stylesheet" type="text/css" href="gallery.css" /> <script language="JavaScript"> ...
7
by: teo | last post by:
Hallo, I'd like to retrieve the pixel length of a string. ------------------------ I decided to use MeasureString, but I have a problem with the graphic "instance" of it. I'm in a Sub and
1
by: fishyweb | last post by:
Hello I have embeded a form into my web page that will allow visitors to send my a reply which will be sent to me through my email. I am using Microsoft Publisher 2003 and have inserted the below...
2
by: phpachu | last post by:
Hi, I hav created a group of textboxes using a loop and its names are unique and names are assigned using variable ( like <input type=text name=$name1>). Then How can i retrieve the values in...
9
by: gavy7210 | last post by:
hello friends i am new to struts. i want to add the user information in the database and then display it back to him. i am using struts 1.2,Eclipse Platform Version: 3.4.2,mySql 5.0.1,jdk...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.