I set my wordpress to use Permalinks with the structure "Day and name", e.g. http://localhost/wordpress/2009/02/25/sample-post/
jQuery('#submit').after('<img src="wp-content/plugins/ajax-comment-posting/loading.gif" id="loading" alt="'+loading+'" />');
But my browser tries to access the image at
because the perma link for my current page is "/about-me". What can I do? I can't use any PHP commands in the JS file, and using a static URL isn't good either.
Please help me!