[eluser]Dr. Seuss[/eluser]
Greetings.
I am making the switch to CI 2.0 and cannot get a simple JQuery $.post invocation to behave the way that it does in my 1.7.2 apps. I probably have a config issue somewhere, but I am not finding it, yet.
Here is what I have:
\application\.htaccess:
Code:
# jedd 2009-02 - obviates requirement for index.php in URLs
RewriteEngine on
RewriteCond $1 !^(index\.php|files|assets|robots\.txt)
RewriteRule ^(.*)$ ./index.php/$1 [L]
\system\.htaccess
\application\config\config.php
Code:
$config['uri_protocol'] = 'REQUEST_URI';
$config['index_page'] = '';
JQuery call:
Code:
$.post("/ajx/email/add", $("#email").serialize());
What happens is that the "current URL"--that is, the URL that contains my form and jquery code--gets the form query string values appended to it and I get the "Welcome" controller / view.
Also, I cannot get the original form to come up without the "index.php" in the URL, even with the configuration described above.
any help would be appreciated.