I've been following this tutorial on how to use ajax I have to admit I'm new at it. I could use jquery but I hate it.
I would like to know if someone can help me figure out why my code is reading Uncaught TypeError: Cannot set property 'onreadystatechange' of undefined. when I fire off the Friend request button or block button. ?
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
include_once('includes/check_login_status.php');?>
<?php
$u = "";
$profile_pic = "";
$profile_pic_btn = "";
$avatar_form = "";
$avatar = "";
$date_added = "";
$joindate = "";
$lastsessio