[Javascript] Javascript fontsize control from external page
Mike Dougherty
mdougherty at pbp.com
Mon Oct 2 09:39:28 CDT 2006
On Mon, 2 Oct 2006 09:08:36 -0500
"Barry Conner" <BConner at huntsvilletx.gov> wrote:
> I'm appending the code from the control bar to this email. It may be pretty sloppy, but I'm a
>novice.
>
> Here's the code:
"... but I'm a novice" is a poor excuse. If you know enough to warn us that it's sloppy, then you
know you could have done differently to begin with. I only point this out because the habits you
develop when you're a novice turn into the bad behaviors of a veteran. Making the time to write
cleanly readable and easily managed code is equally important as making the code work. It might
not seem that way now, but consider what pain you will suffer after a year of writing sloppy code.
You know it will be your job to add/change a feature, and it's unlikely you will remember the
current context in the future. OK, enough public service announcement. This is general advice,
not intended to pick on Barry.
also a reminder: If you can post a URL to your example, it saves us from having to set up a test
for your code. I admit to being either too lazy or too busy to do that much set up in order to
find problems. Again, this is general advice. :)
To actually offer some help to Barry: <q type='rhetorical'>Why are you using frames?</q>
If you can get the code to run inside the frame? I assume you have control over the source
inside the frame. Put the font resize code there. Look up the syntax to call the method inside
the frame rather than in the controlbox. (I don't know it, I avoid frames) Sorry I can't be more
useful to you than general advice and a shot in the dark. :)
More information about the Javascript
mailing list