01-07-2010, 10:27 AM
[eluser]shinokada[/eluser]
I have .htaccess with the following.
This and changing routes.php make me to http://127.0.0.1/ci_jquery/jquery/
No index.php.
Now when I use the following jquery, I have to add index.php.
Like index.php/jquery/ajaxprocess instead of /jquery/ajaxprocess.
Why do I need to add index.php?
I have .htaccess with the following.
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|public_html|scripts|css|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
This and changing routes.php make me to http://127.0.0.1/ci_jquery/jquery/
No index.php.
Now when I use the following jquery, I have to add index.php.
Like index.php/jquery/ajaxprocess instead of /jquery/ajaxprocess.
Why do I need to add index.php?
Code:
$(document).ready(function() {
// $.AJAX Example Request
$('#ajaxform').submit(function(eve){
eve.preventDefault();
$.ajax({
url: "index.php/jquery/ajaxprocess",
type: "POST",
dataType: "html",
data: $('#ajaxform').serialize(),
beforeSend: function(){
showBusy();
},
success: function(html) {
processForm(html);
}
});
}); ...
....