File uploading is working well in my program but it is by page refreshing.Why my page is refreshing?Any idea where i got problem?Any help is appreciated.I cant see a good tutorial for ajax upload in codeigniter.

&lt;html&gt;
&lt;head&gt;
&lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="&lt;?php echo base_url()?&gt;Assets/Scripts/ajaxfileupload.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
    function ajaxFileUpload()
    {
        $("#loading")
        .ajaxStart(function(){

            $(this).show();
        })
        .ajaxComplete(function(){
            $(this).hide();
        });
        $.ajaxFileUpload
        (
            {
                url:'&lt;?php echo site_url()?&gt;/welcome/doupload',
                secureuri:false,
                fileElementId:'fileToUpload',
                dataType: 'json',
                success: function (data, status)
                {
                    if(typeof(data.error) != 'undefined')
                    {
                        if(data.error != '')
                        {
                            $("#info").html(data.error);
                        }else
                        {
                            $("#info").html(data.msg);
                        }
                    }
                },
                error: function (data, status, e)
                {
                    $("#info").html(e);
                }
            }
        )
        return false;
    }
    &lt;/script&gt;
    &lt;/head&gt;

    &lt;body&gt;

        &lt;form name="form" action="" method="POST" enctype="multipart/form-data"&gt;

               &lt;input id="fileToUpload" type="file" size="45" name="fileToUpload" class="input"&gt;

                    &lt;button class="button" id="buttonUpload" onclick="return ajaxFileUpload();"&gt;Upload&lt;/button&gt;

        &lt;/form&gt;
        &lt;/body&gt;
        &lt;/html&gt;


Controller

public function doupload()
    {
$error = "";
   $msg = "";
  $config['upload_path'] = './Assets/';
  $config['allowed_types'] = 'doc|xls|ppt|pdf|rar|jpg';
  $config['max_size'] = '1000';
  $this-&gt;load-&gt;library('upload', $config);
  $this-&gt;upload-&gt;display_errors('','');
  if ( ! $this-&gt;upload-&gt;do_upload("fileToUpload"))
  {
       $error = $this-&gt;upload-&gt;display_errors();
  }
  else

  {
        $msg = "Success";
  }
  echo "{";
   echo    "error: '" . $error . "',n";
   echo    "msg: '" . $msg . "'n";
   echo "}";
    }



Question: What types of sauces would pair well with boiled pork knuckles?
Answer: One traditional accompaniment for pork is apple sauce. This follows the convention that a fruity sauce cuts through the fattiness of meat - duck a l'orange is another example.

Apple sauce is easy to make - just taking a cooking apple, chop it up, stew it down with a little water, then stir in some sugar and butter to taste.