Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE not compatible

Status
Not open for further replies.

LWolf

Programmer
Feb 3, 2008
77
0
0
US
I nvr use IE and do not know where the issue is coming in. The code I have all uses variable variables for form names. For example I have the user id followed by an "_" followed by something like hMon. The result is "1_hMon". When the onclick triggers the code will calculate the hours. This completely works in Firefox but does nothing in IE.

Code:
//These 2 lines are not connected.
var hmon = document.sedit[my_varH + "hMon"].value;

document.sedit[my_varH].value = x.toFixed(2) ;

I am not a versed programmer in JS and have never user anything besides the document model, like "getvaluebyid". I would like to stick to this if possible so I do not have a total rewrite.

Thanks in advance.
K
 
1. Variables, Classnames, Id's should not start with a number.

2.
Code:
var hmon = document.sedit[my_varH + "hMon"].value;
Doesn't follow this
For example I have the user id followed by an "_" followed by something like hMon. The result is "1_hMon".
where is the underscore?

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
 
It was late when i was designing the section. If i change names will my code work in IE? Or do i have to change the code also? What i have works in Firefox.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top