1.
2.
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Form Tester</title>
<link rel="stylesheet" href="/js/ui/jquery.ui.all.css" type="text/css" />
<script language="JavaScript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script language="JavaScript" src="/js/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/js/ckeditor/adapters/jquery.js"></script>
</head>
<body>
<input type="radio" name="FormType" id="FormType" value="FormA" />Form A
<input type="radio" name="FormType" id="FormType" value="FormB" />Form B
<div id="FormViewer"></div>
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
$(function() {
$('#FormViewer').hide();
//Event handler for the item type radio buttons
//This will dynamically load the appropriate form interface
//depending on the radio button clicked.
$("input[name^='FormType']").click(function(){
$('#FormViewer').hide('slow').html('');
var ItemType =$(this).attr('value');
var pageLoad;
if(ItemType=='FormA'){
pageLoad = 'formA.html';
}else{
pageLoad = 'formB.html'
}
$('#FormViewer').load(pageLoad,function(){
$('textarea.editor').ckeditor();
}).fadeIn("slow");
});
});
/*]]>*/
</script>
</body>
</html>3.
Re: CKEditor disappears when using AJAX form loads.
Re: CKEditor disappears when using AJAX form loads.