I\'m familiar with using ajax in the ordinary way with jQuery. I\'ve played around it for a while, but don\'t understand what Wordpress needs to get it to work... Wh
Use wp_localize_script and pass url there:
wp_localize_script( some_handle, 'admin_url', array('ajax_url' => admin_url( 'admin-ajax.php' ) ) );
then inside js, you can call it by
admin_url.ajax_url