I'm using jQuery to ajax a few items on my page. When I go to one of the pretty URL's that the htaccess file makes, it error's out. Here's the jQuery code I'm currently using:
$.ajax({
url: "inc/file.php",
success: function(result){
$('#NavMoreInfo').html(result);
navMoreInfoCloseButton();
$(":not(#NavMoreInfo)").click(function() {
$('#NavMoreInfo').slideUp(300);
});
},
error: function(event, request){
alert(request);
}
Here's my htaccess file:
DirectoryIndex master.php
# Enable Rewriting
RewriteEngine on
RewriteRule ^main/?$ master.php
RewriteRule ^(\w+)/?$ master.php?page=$1
How can I crossDomain my jQuery AJAX? Or is it something in my htaccess that I need to change? Any help is appreciated!
Thank you.