Welcome Guest, Not a member yet? Register   Sign In
How to use ajax in codeigniter
#1

[eluser]mythilisubramanyam[/eluser]
I'm beginner of AJAX codeigniter.

In codeigniter user guide : /AJAX-for-CodeIgniter/User Guide.htm

i couldn't understand the .htaccess and mod_rewrite.....

could any one guide how to implement ajax in codeigniter.
#2

[eluser]Thorpe Obazee[/eluser]
[quote author="mythilisubramanyam" date="1244211737"]I'm beginner of AJAX codeigniter.

In codeigniter user guide : /AJAX-for-CodeIgniter/User Guide.htm
[/quote]

You can read through the documentation on the wiki about it. It's not in the user guide. When you get problems with it is the time ask.
[quote author="mythilisubramanyam" date="1244211737"]
i couldn't understand the .htaccess and mod_rewrite.....
[/quote]
where? which part?
[quote author="mythilisubramanyam" date="1244211737"]
could any one guide how to implement ajax in codeigniter.[/quote]let me point you to http://ellislab.com/forums/viewthread/113456/#573529
#3

[eluser]mythilisubramanyam[/eluser]
i couldn't understand the topic in the link u sent,
can u just guide me in loading ajax in library and how to use it???
#4

[eluser]Thorpe Obazee[/eluser]
read the user guide and http://codeigniter.com/wiki/AJAX_for_CodeIgniter/
#5

[eluser]mythilisubramanyam[/eluser]
i read the user guide, but i got struck here:

If you use mod_rewrite, make sure you allow the javascript directory to be accessed. To do this, set up your .htaccess file to look something like this:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|stylesheets|javascript)
RewriteRule ^(.*)$ /index.php/$1 [L]

i didn't get what the above coding is ???
#6

[eluser]Dam1an[/eluser]
Basically, a request which isn't for something in the javascript, images, stylesheet directories will be routed through the index.php file and handled by CI
If the request is for one of the above paths, it goes directly to it, bypassing CI
#7

[eluser]mythilisubramanyam[/eluser]
could u give me a sample ajax using CI program which will help me to understand ajax in CI quickly
#8

[eluser]Dam1an[/eluser]
Sorry, I've never actually used AJAX in CI (yet)




Theme © iAndrew 2016 - Forum software by © MyBB