Hello,
I am at my wits end with some code I am doing. I am working on a website that uses frames and has the following in a form. The code is as follows:
function codename() {
if(document.IntranetRegistration.chbxVirtual.checked)
{
document.IntranetRegistration.Address.disabled=true;
}
else
{
document.IntranetRegistration.Address.disabled=false;
}
}
I am referencing this code from the onClick event from the Checkbox named chbxVirtual inside the form. When I use the page If I explicitly link to this page (outside of frames) it works fine. If I put it inside a frame and try the check box it throws an error "object expected." I have tried other javascript code and it does the same thing: works outside of the frames, but doesn't work inside the frame and throws the exact same error. I am not sure if I need to put "parent.document....." in my code and throw the above function in the parent frame or not? Any ideas or help would be greatly appreciated.
thanks.
Mike
I am at my wits end with some code I am doing. I am working on a website that uses frames and has the following in a form. The code is as follows:
function codename() {
if(document.IntranetRegistration.chbxVirtual.checked)
{
document.IntranetRegistration.Address.disabled=true;
}
else
{
document.IntranetRegistration.Address.disabled=false;
}
}
I am referencing this code from the onClick event from the Checkbox named chbxVirtual inside the form. When I use the page If I explicitly link to this page (outside of frames) it works fine. If I put it inside a frame and try the check box it throws an error "object expected." I have tried other javascript code and it does the same thing: works outside of the frames, but doesn't work inside the frame and throws the exact same error. I am not sure if I need to put "parent.document....." in my code and throw the above function in the parent frame or not? Any ideas or help would be greatly appreciated.
thanks.
Mike