Admin backend problem - Component stopped working

Discussion in 'Joomla' started by Webed4it, Jul 30, 2011.

  1. #1
    Hi,

    I'm using the CK forms component for my contact form. Everything still works fine in the front end but when I try to edit the contact form it loads a page that looks like the source code except there is no <html> or <head> or <body> tag. The first few lines are:

    <script type="text/javascript">
    
    window.addEvent('domready', function(){
    	var myTabs = new mootabs('tabcontainer');
    });
        
    function submitbutton(pressbutton)	{
    	var form = document.adminForm;
    
    	if (pressbutton == 'cancel') {
    		submitform( pressbutton );
    		return;
    	}
    
    	// do field validation
    	if (form.name.value == ""){
    		alert( "Form must have a name" );
    	} else if (form.name.value.match(/[a-zA-Z0-9]*/) != form.name.value) {
    		alert( "Field name contains bad caracters" );
    	} else {
    		submitform( pressbutton );
    	}
    }
    
    </script>
    
    
    <form action="index.php" method="post" name="adminForm" id="adminForm">
     
        <div id="tabcontainer">
        
            <ul class="mootabs_title">
            	<li><a href="#fragment-1" class="active">General</a></li>
              	<li><a href="#fragment-2">Result</a></li>
              	<li><a href="#fragment-3">Write e-mail</a></li>
              	<li><a href="#fragment-4">Advanced</a></li>
                <li><a href="#fragment-5">Frontend display</a></li>
                <li><a href="#fragment-6">Help</a></li>
          	</ul>
    
    		<div id="fragment-1" class="mootabs_panel active"> 
    		<table class="admintable ckadmintable"> 
    		<tr>
    			<td class="key">
    				<label for="title">
    					Name:
    				</label>
    			</td>
    Code (markup):
    Does anyone know what the problem could be?
     
    Webed4it, Jul 30, 2011 IP