RE: IE 4 vs IE 5 handling of READONLY in

2000-10-26 Thread Hayes, David

A couple of thoughts:

For anything you definately don't want the user to change, use a hidden
field in your calculations.  You can have a displayed field for formatting
consistency, but don't use it for the calculations.  (On IE 4+, you can use
the "disabled" property on your read-only fields to make them "grayed out".)

You can use the onFocus event to prevent them from even changing the display
ones.

You can reset the display ones to the hidden field values on calculation.





-Original Message-
From: Reed Powell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 8:26 PM
To: CF-Talk
Subject: OT: IE 4 vs IE 5 handling of READONLY in 


I spent half the afternoon at Borders going through every JS book trying to
figure this out, no luck.  Anyone have some clues for me?

I have a simple form that is meant to resemble a simple spreadsheet for the
sales guys to use to do some pricing models with.  I start with a couple of
known numbers from a database for the account they are working on, and then
let them do their modeling based on those numbers, using formulas that I
build using JS.

Those fixed numbers should not be changed (obviously).  However, I want all
the numbers to format the same, so I set them all up as 
and used different style sheets depending on whether the field was truly an
input field, or a calculated field, or one of the fixed input numbers.  So
on the fields that are not really meant for user input, I set READONLY in
the  tag.

When I need to recalculate (triggered via onChange in the user input 
tags), I do a
document.formname.fieldname.readonly = 0
in JS, and then set it back to 1 when I'm done.

Sound OK so far?  Well, I thought so to.  My development PC runs IE 5, and
all is just great with this little app.  I put it up on the production
server for people to beat on and test, and guess what?  The official
deployed version of IE in the company happens to be IE 4, and whenever
and those fields with the starting numbers do not get populated.  As soon as
a number is typed into any of the user input fields, I get a NaN error
message (not a number) in any of the other fields whose calculated value
depends upon the starting numbers.

I tried leaving off the initial READONLY in the  tags, figuring there
was interaction between the initial value, and the JS code.  Didn't change a
thing, but now if I happen to type a number into the field that should have
the initial value, the NaN goes away and the calculation uses the value I
typed in.

I should not be able to type into that field!  The last thing that the JS
functions do, both when they do the recalcs, or when the startup routine is
called via onLoad in  (to set the initial values), is to set the
.readonly back to 1.  But they are certainly not readonly now!

I looked all through the charts in the various books about what is supported
in each JS version and browser version, and found no mention at all of
READONLY.  Many of the HTML books don't mention it at all.  None of the JS
reference books I looked through included it as an option for the
document.form.field object. But then most of them didn't spend much time on
forms at all.

ANY IDEAS?  I'M STUMPED, AND I WANTED TO GET THIS PUPPY OFF MY PLATE THIS
WEEK AND MOVE ON TO OTHER EXCITING THINGS. CODE IS BELOW...

tia,
-reed








function SetValues(){
document.data.RevActual.readonly = 0;
document.data.COSActual.readonly = 0;
document.data.COSATLActual.readonly = 0;
document.data.COSOEMActual.readonly = 0;

document.data.RevActual.value = parseInt(RevActual);
document.data.COSActual.value = parseInt(COSActual);
document.data.COSATLActual.value = parseInt(ATLActual);
document.data.COSOEMActual.value = parseInt(OEMActual);

document.data.RevActual.readonly = 1;
document.data.COSActual.readonly = 1;
document.data.COSATLActual.readonly = 1;
document.data.COSOEMActual.readonly = 1;

ReCalcAll();
}
function ReCalcAll(){
document.data.RevCoActual.readonly = 0;
document.data.RevRunRateActual.readonly = 0;
document.data.GMActual.readonly = 0;
document.data.GMPctActual.readonly = 0;
document.data.COSActual.readonly = 0;
document.data.COSATLActual.readonly = 0;
document.data.COSOEMActual.readonly = 0;

document.data.RevCoForecast.value =
parseInt(document.data.RevCoOneTimeForecast.value) +
parseInt(document.data.RevCoOngoingForecast.value);
document.data.RevCoActual.value =
parseInt(document.data.RevCoOneTimeActual.value) +
parseInt(document.data.RevCoOngoingActual.value);

document.data.RevRunRateActual.value =
parseInt(document.data.RevActual.value) -
parseInt(document.data.RevCoActual.value);

document.data.COSATLForecast.value =
parseInt(document.data.COSATLRunRateForecast.value) +
parseInt(document.data.COSATLCoForecast.value);
document.data.COSOEMForecast.value =
parseInt(document.data.COSOEMRunRateForecast.value) +
parseInt(document.data.COSOEMCoForecast.value);


document.data.COSForecast.value =
parseInt(document.data.COSATLForecast.value) +
parseInt(document.data

RE: IE 4 vs IE 5 handling of READONLY in

2000-10-26 Thread Jann VanOver

When you say "JS" books, do you mean "Javascript" ??  M$oft has their OWN
spec called JScript which is what IE uses.  Perhaps you could find this
READONLY attribute in some JScript documentation.

I would handle it as another person suggested, put an "onclick=blur()" on
the input fields that you don't want edited by a user.  This keeps them from
typing there and allows you to update the values programatically

> -Original Message-
> From: Reed Powell [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 25, 2000 6:26 PM
> To:   CF-Talk
> Subject:  OT: IE 4 vs IE 5 handling of READONLY in 
> 
> I spent half the afternoon at Borders going through every JS book trying
> to
> figure this out, no luck.  Anyone have some clues for me?
... 

> I looked all through the charts in the various books about what is
> supported
> in each JS version and browser version, and found no mention at all of
> READONLY.  Many of the HTML books don't mention it at all.  None of the JS
> reference books I looked through included it as an option for the
> document.form.field object. But then most of them didn't spend much time
> on
> forms at all.
> 
> ANY IDEAS?  I'M STUMPED, AND I WANTED TO GET THIS PUPPY OFF MY PLATE THIS
> WEEK AND MOVE ON TO OTHER EXCITING THINGS. CODE IS BELOW...
> 
> tia,
> -reed
> 

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]



Re: IE 4

2000-05-01 Thread [ a l l e n g ]

more accurate and realiable than the cold fusion?

but the CF is server side and NOT dependent on the clients browser.  and i
believe the only time that CF actually send actual javascript to the client
browser is when using CFFORMs.

- Original Message -
From: "Craig M. Rosenblum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 01, 2000 11:10 AM
Subject: RE: IE 4


more accurate and reliable...

and a lot of cold fusion is turned into javascript by the server

> -Original Message-
> From: [ a l l e n g ] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 01, 2000 9:54 AM
> To: [EMAIL PROTECTED]
> Subject: Re: IE 4
>
>
> Why use the javascript if you don't absolutely need to?
>
> - Original Message -
> From: "Craig M. Rosenblum" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 01, 2000 9:42 AM
> Subject: RE: IE 4
>
>
> I would be using a javascript answer instead...
>
> 
> self.location.href='whereveryouwanttogo.com';
> 
>
>
>
> > -Original Message-
> > From: David Clay [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 01, 2000 7:46 AM
> > To: [EMAIL PROTECTED]
> > Subject: IE 4
> >
> >
> > Can any tell me why it takes more time for the  > below to pull up in IE 4.01 and 4.07 than IE 5 and NS 4.06.
> >
> > Puzzling!
> >
> > Thank you for your time
> >
> > This cflocation goes 2 directories down after DC_NAME is found
> > from a query.
> >
> > 
> >
> > Dave Clay
> > Internet Facilitator
> > Trus Joist, A Weyerhaeuser Business
> >
> > --
> > 
> > Archives: http://www.eGroups.com/list/cf-talk
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebarÿsts&bodyÿsts/cf_tal
> k or send a message to [EMAIL PROTECTED] with
> 'unsubscribe'
> in the body.
>
> --
> --
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_tal
k or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_talk or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: IE 4

2000-05-01 Thread Chris Evans

I don't know of any CF that is turned into Javascript, other than CFFORM
elements which are specifically desgined to dothis.

Chris Evans
[EMAIL PROTECTED]
http://www.fuseware.com


-Original Message-
From: Craig M. Rosenblum [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 01, 2000 12:10 PM
To: [EMAIL PROTECTED]
Subject: RE: IE 4


more accurate and reliable...

and a lot of cold fusion is turned into javascript by the server

> -Original Message-
> From: [ a l l e n g ] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 01, 2000 9:54 AM
> To: [EMAIL PROTECTED]
> Subject: Re: IE 4
>
>
> Why use the javascript if you don't absolutely need to?
>
> - Original Message -
> From: "Craig M. Rosenblum" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 01, 2000 9:42 AM
> Subject: RE: IE 4
>
>
> I would be using a javascript answer instead...
>
> 
> self.location.href='whereveryouwanttogo.com';
> 
>
>
>
> > -Original Message-
> > From: David Clay [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 01, 2000 7:46 AM
> > To: [EMAIL PROTECTED]
> > Subject: IE 4
> >
> >
> > Can any tell me why it takes more time for the  > below to pull up in IE 4.01 and 4.07 than IE 5 and NS 4.06.
> >
> > Puzzling!
> >
> > Thank you for your time
> >
> > This cflocation goes 2 directories down after DC_NAME is found
> > from a query.
> >
> > 
> >
> > Dave Clay
> > Internet Facilitator
> > Trus Joist, A Weyerhaeuser Business
> >
> > --
> > 
> > Archives: http://www.eGroups.com/list/cf-talk
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebarÿsts&bodyÿsts/cf_tal
> k or send a message to [EMAIL PROTECTED] with
> 'unsubscribe'
> in the body.
>
> --
> --
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_tal
k or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_talk or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: IE 4

2000-05-01 Thread Benjamin Smedberg

> Why use the javascript if you don't absolutely need to?

more accurate and reliable...

and a lot of cold fusion is turned into javascript by the server

NOT TRUE!  is NOT a JavaScript function! It is carried out at
the HTTP level. Furthermore, there are people who disable JavaScript partly
or completely.

Also, if you use JavaScript to go to a new location, it will appear in your
browser history, while with CFLOCATION it will not...

CFLOCATION is in general a much better alternative.

+
+ Benjamin Smedberg
+ CUA Assistant Webmaster
+ [EMAIL PROTECTED] - http://computing.cua.edu/as/bds/
+
+ He is risen, as He said! Alleluia!
+


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: IE 4

2000-05-01 Thread Craig M. Rosenblum

more accurate and reliable...

and a lot of cold fusion is turned into javascript by the server

> -Original Message-
> From: [ a l l e n g ] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 01, 2000 9:54 AM
> To: [EMAIL PROTECTED]
> Subject: Re: IE 4
>
>
> Why use the javascript if you don't absolutely need to?
>
> - Original Message -
> From: "Craig M. Rosenblum" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 01, 2000 9:42 AM
> Subject: RE: IE 4
>
>
> I would be using a javascript answer instead...
>
> 
> self.location.href='whereveryouwanttogo.com';
> 
>
>
>
> > -Original Message-
> > From: David Clay [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 01, 2000 7:46 AM
> > To: [EMAIL PROTECTED]
> > Subject: IE 4
> >
> >
> > Can any tell me why it takes more time for the  > below to pull up in IE 4.01 and 4.07 than IE 5 and NS 4.06.
> >
> > Puzzling!
> >
> > Thank you for your time
> >
> > This cflocation goes 2 directories down after DC_NAME is found
> > from a query.
> >
> > 
> >
> > Dave Clay
> > Internet Facilitator
> > Trus Joist, A Weyerhaeuser Business
> >
> > --
> > 
> > Archives: http://www.eGroups.com/list/cf-talk
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebarÿsts&bodyÿsts/cf_tal
> k or send a message to [EMAIL PROTECTED] with
> 'unsubscribe'
> in the body.
>
> --
> --
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_tal
k or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: IE 4

2000-05-01 Thread Benjamin Smedberg

Can any tell me why it takes more time for the http://computing.cua.edu/as/bds/
+
+ He is risen, as He said! Alleluia!
+


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: IE 4

2000-05-01 Thread John N Westerlund

I would hypothesize because MS and AOL/NSCP streamlined the redirect() call
in IE5 and NS4.06.
Since the CFLOCATION just calls the redirect() and the redirect() is faster
in later editions, it takes less time.


-Original Message-
From: David Clay <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, May 01, 2000 8:44 AM
Subject: IE 4


Can any tell me why it takes more time for the 

Dave Clay
Internet Facilitator
Trus Joist, A Weyerhaeuser Business


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: IE 4

2000-05-01 Thread [ a l l e n g ]

Why use the javascript if you don't absolutely need to?

- Original Message -
From: "Craig M. Rosenblum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 01, 2000 9:42 AM
Subject: RE: IE 4


I would be using a javascript answer instead...


self.location.href='whereveryouwanttogo.com';




> -Original Message-
> From: David Clay [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 01, 2000 7:46 AM
> To: [EMAIL PROTECTED]
> Subject: IE 4
>
>
> Can any tell me why it takes more time for the  below to pull up in IE 4.01 and 4.07 than IE 5 and NS 4.06.
>
> Puzzling!
>
> Thank you for your time
>
> This cflocation goes 2 directories down after DC_NAME is found
> from a query.
>
> 
>
> Dave Clay
> Internet Facilitator
> Trus Joist, A Weyerhaeuser Business
>
> --
> 
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebarÿsts&bodyÿsts/cf_tal
k or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=sts&body=sts/cf_talk or send
a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: IE 4

2000-05-01 Thread Craig M. Rosenblum

I would be using a javascript answer instead...


self.location.href='whereveryouwanttogo.com';




> -Original Message-
> From: David Clay [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 01, 2000 7:46 AM
> To: [EMAIL PROTECTED]
> Subject: IE 4
>
>
> Can any tell me why it takes more time for the  below to pull up in IE 4.01 and 4.07 than IE 5 and NS 4.06.
>
> Puzzling!
>
> Thank you for your time
>
> This cflocation goes 2 directories down after DC_NAME is found
> from a query.
>
> 
>
> Dave Clay
> Internet Facilitator
> Trus Joist, A Weyerhaeuser Business
>
> --
> 
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebarÿsts&bodyÿsts/cf_tal
k or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.