Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-09-2004, 11:50 PM   PM User | #1
Daniel Poindext
New to the CF scene

 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Daniel Poindext is an unknown quantity at this point
Refreshing a page when user increases text size

A preemtive thanks to anyone who can offer me help, even if to say that there's no way to do this.

What I need to do is very simple, but I have very little experience with Javascript. My extensive Google searches have been useless. Basically, when a visitor to my webpage changes the text-size keywords in their browser, I need the page to refresh. That's it.

The background behind this, if it helps, is that I'm building a page that scales its text by use of the em unit. I'm using a flash replacement technique with headers, and I'd like the headers to scale in relation to the body type. The headers handle this fine, but only if the user manually refreshes the page after increasing the text size in the menu. I'd like the page to detect their change and reload so that the headers scale seamlessly with the body text.

Just to make sure I haven't been unclear about the method of increasing text size, I'm talking about the controls in your browser. In Firebird: View > Increase Text Size; in IEx: View > Text Size > Smallest thru Largest.

Thanks again for the help. I'm sorry if this topic has been addressed recently; believe it or not I did try to find it by myself.
Daniel Poindext is offline   Reply With Quote
Old 12-10-2004, 12:20 AM   PM User | #2
Basscyst
Smokes a Lot


 
Join Date: Jul 2003
Location: CA, USA
Posts: 1,594
Thanks: 5
Thanked 20 Times in 20 Posts
Basscyst is on a distinguished road
Honestly you are going about it the wrong way. You should create the page so that it scales accordingly with the size of the text automatically, without a refresh. If you need guidence in how to go about this, post your code in the HTML/CSS forum. Javascript isn't needed for something of this nature. Furthermore anyone with JS disabled should you find the solution you request, would view a broken site on resize of the text anyhow.

Basscyst
__________________
Helping to build a bigger box. - Adam Matthews
Basscyst is offline   Reply With Quote
Old 12-10-2004, 03:08 AM   PM User | #3
Daniel Poindext
New to the CF scene

 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Daniel Poindext is an unknown quantity at this point
Basscyst:

That really might be the answer I need. I'm actually pretty experienced with scalable CSS design; but this is kind of a personal project that's typography-oriented. So I'm trying to figure out if I can break some "best practice" stuff to get a specific result. I may end up back at the more common solutions, though. Thanks for the advice.
Daniel Poindext is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:27 AM.


Advertisement
Log in to turn off these ads.