Problems in Netscape 4.7 on Macintosh platform
Milind
- javascript
0 Joachim
Following is my script. This script works in windows platforms in all vwersions of netscape and IE. But creates problem in Mac OS 8.6.
In the HTML I have layer named 'formLayer' in which entire form is placed.
var msgStr = "Achtung !\n\n";
var boolCorrect = true;
var theForm = (document.layers)?document.formLayer.document.myform:document.myform;
if(theForm.name.value=="")
{
msgStr += "Bitte geben Sie einen Namen an.\n";
boolCorrect = false;
}
if(boolCorrect)
theForm.submit();
else
alert(msgStr);
In this script the alert messages are shown as desired. But the form is not submitted.
Does any one know ??
Any help is highly appreciated.
Thanks in advance.
Warm Regards,
Milind Naik
hi,
In this script the alert messages are shown as desired. But the form is not submitted.
How do You call the function? It should be like:
' onclick="myFunc(); return false;" '.
Make shure that the whole form is within _one_ layer.
Any error messages? Type 'javascript:' in the url-input and press enter.
Is the file online?
hth and regards Joachim
hi,
In this script the alert messages are shown as desired. But the form is not submitted.
How do You call the function? It should be like:
' onclick="myFunc(); return false;" '.
Make shure that the whole form is within _one_ layer.
Any error messages? Type 'javascript:' in the url-input and press enter.
Is the file online?
hth and regards Joachim
Hello Mr.Joachim,
Thanks a lot for your response. The form is in one layer. And I am taking all other precautions.But nothing is helping. If the contact formula is not complete then it sends the desired alert message. But the whole form is not submited.
I even downloaded another version of netscape into the MAC. But alas!!! Is it that netscape on Macintosh has some problems with Layers ??