472,353 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 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 1317

"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...
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...
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...
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...
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"...
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...
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...
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...
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
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.