I just learned about wp_localize_script() and it's very cool. I read Otto's post and Gary Cao's post, but I'm learning Ajax so I'm trying to wrap my head around getting the path to wp-load.php this way.
I have array like this in my test env:
$data = array( 'test' => 'test2', 'wp_get_site_url' => get_site_url(), 'wp_abspath' => ABSPATH, 'wp_load' => get_site_url() . '/wp-load.php', 'foo' => 'bar', 'setting' => 123 );
Inside my plugin, how to declare data.wp_load (dynamic) path?
<script>How_Do_I_Declare data.wpload; alert('thanks'); </script>
If I'm doing things wrong, I'd love your help. I'm currently reading Ajax_In_Plugins as I type this. Thanks.