Well, I don't have a way to publish it on a server right now, but I could
try showing here the whole script. It's actually just a demo since I have to
polish this aspect before I can go on with all the other work in the plugin.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<title></title>
<script src="jQuery1.1.1.js" type="text/javascript"></script>
<script type="text/javascript">
function getIFrameDocument(aID){
if (document.getElementById(aID).contentDocument)
return document.getElementById(aID).contentDocument; // W3C way.
else
return document.frames[aID].document; // IE way.
}
$(document).ready(function(){
// Works in IE6, but not in FF2.
getIFrameDocument("foo").designMode = "On";
// Works in FF2 but not in IE6.
$("#foo").bind("load", function(){getIFrameDocument("foo").designMode =
"on"});
});
</script>
</head>
<body>
<iframe id="foo"></iframe>
</body>
</html>
This code works both on IE6 and FF2, but as you can see, I always have to
execute the two sentences without first checking what kind of browser is
being used. I guess I'll have to leave it that way by now, but I don't like
it, so suggestions are still welcome.
On 2/27/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
Abel,
If we can get a look at the url, that may helps us help you better.
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/