Forum Moderators: open
function messages(adviceNumber) {
//document.FORM1.getElementById("adviceBox").value = helpers[adviceNumber];
//document.layers.FORM1.adviceBox.value = helpers[adviceNumber];
MM_findObj("adviceBox").value = helpers[adviceNumber];
}
Thanks in advance for your help.
MsDetta
change your function header so that you pass the form along like so:
function messages(yourForm, adviceNumber) {
and change the value like so:
yourForm.adviceBox.value = helpers[adviceNumber];
now you'd need to change the function calls wherever they are to something like this:
messages(FORM1, adviceNumeber)
hope that helps
mavherick
function messages(adviceNumber) {
var ab=0;
ab = MM_findObj("adviceBox");
if(ab)
{
ab.value = helpers[adviceNumber];
}
}
Test it in NN4/Morizilla, if it doesn't work type,
javascript:
in the address bar, this opens up a console that may help with debugging.
-Mark
It's one of the main reasons I stopped supporting Netscape 4.X.
There are a whole host of other issues with NN 4.X,including a completely different interpretation of the DOM from IE.
With IE being the leading browser I decided that NN needed to change rather than me change, and with NN 7, the DOM resembles that of IE.