Welcome Guest, Not a member yet? Register   Sign In
Ajax question: Why do I need index.php in the path?
#1

[eluser]shinokada[/eluser]
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);
             }
        });

    });    ...
....


Messages In This Thread
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 10:27 AM
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 10:31 AM
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 12:43 PM
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 01:34 PM
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 01:37 PM
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 01:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB