What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » JavaScript IE Incompatiblity

JavaScript IE Incompatiblity
Author: Message:
lordy
Senior Member
****


Posts: 853
Reputation: 24
35 / Male / Flag
Joined: Jul 2004
Status: Away
O.P. JavaScript IE Incompatiblity
Ok I have this javascript code:

code:
function getElem(id) {
    var divid = document.getElementById(id);
    return divid;
}

function msnAddShow() {
    var form = getElem('hostsu');
    var tblrow = getElem('msnadd');
    var msnAdd = null;
    for (i=0; i<form.msn.length; i++) {
        if (form.msn[i].checked) {
            msnAdd = form.msn[i].value;
        }
    }
    if (msnAdd == "yes") {
        tblrow.style.display = "table-row";
    }
    else {
        tblrow.style.display = "none";
    }
}

Problem is that it doesn't work in IE. What it's meant to do is detect if someone has selected 'yes' to the radio button 'do you have MSN Messenger?' and, if they have, display a text box beneath it for them to enter their MSN address. Live code is at: http://www.teaspoondiner.net/hosting.php?act=signup

It works in all browser BUT IE... is there something I can change for it to work in IE as well as the other browsers? :undecided:
07-03-2006 04:30 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
JavaScript IE Incompatiblity - by lordy on 07-03-2006 at 04:30 AM
RE: JavaScript IE Incompatiblity - by matty on 07-03-2006 at 04:34 AM
RE: JavaScript IE Incompatiblity - by kotjze on 07-03-2006 at 04:34 AM
RE: JavaScript IE Incompatiblity - by lordy on 07-03-2006 at 04:44 AM
RE: JavaScript IE Incompatiblity - by matty on 07-03-2006 at 04:57 AM
RE: JavaScript IE Incompatiblity - by lordy on 07-03-2006 at 04:59 AM
RE: JavaScript IE Incompatiblity - by ShawnZ on 07-03-2006 at 05:06 AM
RE: JavaScript IE Incompatiblity - by lordy on 07-03-2006 at 05:16 AM
RE: JavaScript IE Incompatiblity - by ShawnZ on 07-03-2006 at 05:16 AM
RE: JavaScript IE Incompatiblity - by lordy on 07-03-2006 at 05:19 AM
RE: JavaScript IE Incompatiblity - by matty on 07-04-2006 at 10:10 PM
RE: JavaScript IE Incompatiblity - by lordy on 07-04-2006 at 11:35 PM
RE: JavaScript IE Incompatiblity - by matty on 07-05-2006 at 01:17 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On