```
$(document).ready(function(){
    function openEditor(){
        $("#editor").show().animate({width: 965, height: 380}, 1500);
        $("#editor textarea").show();
    }

    function closeEditor(){
        $("#editor").animate({width: 985, height: 1}, 1500, function(){
            $("#editor").hide();
            $("#editor textarea").hide();
        });
    }

    function setedit(){
        $.ajax({
            type: "POST",
            url: "engine.php",
            data: "title="+ $('#editorTitle').attr('value') +"&text="+ $('#editorText').html(),
            beforeSend: function(){
                $('#mainField').html('<img src="data/images/loader.gif" alt="Loading...">');
            },
            success: function(msg){
                alert(msg);
                closeEditor();
                search();
            }
        });
    }
    function search(){ // Row 138
        $('#editorTitle').val($('#search').val());

        $('#mainField').html('<img src="data/images/loader.gif" alt="Loading...">');

        $.get('engine.php?search='+ $('#search').val() , function(data) {
            $('#mainField').html(data);
        });

        $.get('engine.php?raw=true&search='+ $('#search').val() , function(data2) {
            $('#editorText').html(data2);
        });

        $.get('engine.php?title=true&search='+ $('#search').val() , function(data2) {
            $('#h1').html(data2); // Row 152
            $('#editorTitle').html(data2);
        });
    }

    $("#ready").html('Document ready at '+ event.timeStamp); // Row 157

});

```

Hello,

At row 138 and row 157 i get some strange error that an object (?) is required?
I've been working on it all day and it still isn't working...

Help! Please!

Greetings!