Click to See Complete Forum and Search --> : couple of issues


raghu
03-12-2003, 09:09 PM
1.I wanted to disable cookie in my IE browser (version 6.0.2600). I set the slider bar option to "Block All Cookie" at browser menu Tools->Internet Option ->Privacy, but still I can able read and write cookie using JavaScript and ASP . I would like to know if is there any option available where I can disable the cookie in IE browser.

2.I get a "object is not a function" error whenever i try to submit a form like document.form,submit() in netscape 6.0 , but works fine in Netscape 7.0 and all other IE versions.

3.I want to disable the radio buttons and if i have checked any radio button, on disabling they should still reamin disabled.I have sample code which works fine in Netscape 6.0
but does not work for Netscape 7.0

Here is the sample code.

<html>
<head>
<script>
function tt()
{
//document.frmlower.r1[0].disabled=true;
//document.frmlower.r1[1].disabled=true;
document.getElementById("ra1").disabled=true;
document.getElementById("ra2").disabled=true;
}

</script>
</head>
<body>
<form name="frmlower">
<input type="text" value="from2"> <input type="button" name="dd" value="Submit" onclick="tt();">
<input type="radio" name="r1" id="ra1" value="radio2" checked> <input type="radio" name="r1" id="ra2" VALUE="Radio1">
</form>
</body>
</html>

Dan Drillich
03-12-2003, 09:37 PM
As you probably know, it works well in IE 6.

raghu
03-13-2003, 10:45 AM
I want the same to work in netscape also.

pyro
03-13-2003, 02:13 PM
It seems to work for me in NN7...

to submit your form, try either document.forms[0].submit(); or document.formname.submit();

raghu
03-13-2003, 02:21 PM
Pyro,

I want the 2nd one to work in netscape 6.0
Infact i have given document.formname.submit();
I did a typing mistake. It is not working, it still gives
"object is not a function" still in netscape 6.0

I did not understand by it works in NN7.0 , Are talking about the 3rd point.If that is the case, thn i am able to disable, but the browser does not show whether it is checked or not.

pyro
03-13-2003, 02:29 PM
2. I don't have Netscape 6, so I can't test

3. That seems to be the way that NN7 handles disabeling radio buttons... It works in IE6, and, disables in NN7, but, like you said, doesn't show which one was clicked..

raghu
03-13-2003, 02:34 PM
Could some-body else with netscape 6.0 ,help me on "object is not a function"