``hi,
using whizzywig wysiwyg editor y found that having enter code here makeWhizzyWig("edited", "all"); is ok
but running
<script>
function doit(){
makeWhizzyWig("edited", "all");
}
</script>
doit()
it breaks....
any suggestion about this difference? also i will appreciate some kind of explanation about this
thanks in advance makerjoe
-------------------------------------------------------------------------------------------
as per your request
this works ok
<head>
<script type="text/javascript" src="/makerjoe/js/whizzywig.js"></script>
</head>
<body>
<form name="Whizzy" action="whizzed.php" method="post" onsubmit="syncTextarea();">
<textarea name="edited" id="edited" rows="15" cols="70" style="width:99%; height:500px;">
</textarea>
<input type="submit" name="submit" value="Submit" title=" Displays your page, which you can Save from the File menu. ">
</form>
<script>
makeWhizzyWig("edited", "all");
</script>
</body>
------------------------------------------------------------------------------------------
the following does not work!!!
<head>
<script type="text/javascript" src="/makerjoe/js/whizzywig.js"></script>
</head>
<body>
<form name="Whizzy" action="whizzed.php" method="post" onsubmit="syncTextarea();">
<textarea name="edited" id="edited" rows="15" cols="70" style="width:99%; height:500px;">
</textarea>
<input type="submit" name="submit" value="Submit" title=" Displays your page, which you can Save from the File menu. ">
</form>
<script>
function doit(){
makeWhizzyWig("edited", "all");
}
</script>
<a href=javascript:doit()> doit </a>
</body>