<!--
/**
 * K-onstruct CMS
 * Copyright (C) 2008-2011 Kevin Kis
 *
 * Formerly known as CECMS Content Management System
 *
 * PHP version 5
 * @copyright  2008-2011 Kevin Kis
 * @author     Kevin Kis <http://www.k-kombinat.de>
 *
 */

/**
 * Load on ready state
 */




$(function() {
    glossarsearch();
});


function glossarsearch() {
    
    var res;
    
    // Send ajax form by form id
    $('#GlossarSearch').ajaxForm({

	
        success: function(result) {
            
            $('#SearchResult').html('');
            
            if(result != '') {
                
                res = JSON.parse(result);
               
              for( var k=0; k<res.length; k++ ) {
                $('#SearchResult').html(res[k].teasertext);
                $('#SearchResult').html(res[k].text);
              }
            }
            
        }
    });
    
    $('#GlossarSearch').submit();
}
-->
