Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


IE not compatible

IE not compatible

IE not compatible

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.


//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.

RE: IE not compatible

1. Variables, Classnames, Id's should not start with a number.



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

RE: IE not compatible

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close