Object required?
<pre><code>$(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') +"&amp;text="+ $('#editorText').html(),
            beforeSend: function(){
                $('#mainField').html('&lt;img src="data/images/loader.gif" alt="Loading..."&gt;');
            },
            success: function(msg){
                alert(msg);
                closeEditor();
                search();
            }
        });
    }
    function search(){ // Row 138
        $('#editorTitle').val($('#search').val());

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

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

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

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

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

});
</code></pre>

<p>Hello,</p>

<p>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...</p>

<p>Help! Please!</p>

<p>Greetings!</p>
