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
Firstly, you should read this page thoroughly http://codex.wordpress.org/AJAX_in_Plugins
Secondly, ajax_script is not defined so you should change to: url: ajaxurl. I don't see your function1() in the above code but you might already define it in other file.
And finally, learn how to debug ajax call using Firebug, network and console tab will be your friends. On the PHP side, print_r() or var_dump() will be your friends.