I have 3 inline editors on one page, and I'm trying to prevent that they can be submitted when they're in source-mode. In the source of the editor is a checkbox
The source of all 3 iframes is the same. they're called richedit, richedit2 and richedit3.
Now when someone tries to submit I have to check if the checkbox is true or false.
I can get as far as window.document.all.richedit.document, this still returns an object. When I trye to put window.document.all.richedit.document.getElementById("switchMode") it already is null =( Anyone know what i'm doing wrong here ?
ty
Code:
<input class="checkbox" type="checkbox" name="switchMode" id="switchMode" onclick="setEditMode(switchMode)">
Now when someone tries to submit I have to check if the checkbox is true or false.
I can get as far as window.document.all.richedit.document, this still returns an object. When I trye to put window.document.all.richedit.document.getElementById("switchMode") it already is null =( Anyone know what i'm doing wrong here ?
ty