Does Code Igniter has build in Ajax Support |
[eluser]ummarbhutta[/eluser]
Hi, I am new to Code Igniter? want to know that whether CI has built in support for Ajax or we have to use some third party library.... Thanks
[eluser]xwero[/eluser]
The jQuery library is actually a wrapper library where you can add any javascript library you want to use in php. I prefer do keep my javascript coding separate from the php programming as much as possible because most of the time it's not ajax related.
[eluser]WoOzY KinG[/eluser]
@xwero: does jQuery's core come with some juicy features as well? That's what I always thought.
[eluser]xwero[/eluser]
The most appealing feature for me is making javascript more easy to work with and understand. But of course there is the dom parser/engine that is the heart of jQuery and the fact that you can extend it to you liking with plugins, you can write yourself if you want.
[eluser]WoOzY KinG[/eluser]
@xwero: Actually we have the same reason of using it. Sorry that I've always included the plugin that their team developed as well. So what I mentioned was like jQuery + their plugins.
[eluser]Lukifer[/eluser]
I rolled my own AJAX helper, using Prototype rather than jQuery (both are quite good, I just have more experience with the former). Here it is, in case you find it helpful: Code: # AJAXANCHOR: Creates link which hits URL and replaces the contents of provided CSS id EDIT: ajaxLoad string should be wrapped in script tags, the forum is eating them. Looking forward to CI/EE 2.0's abstracted JS libraries! |
Welcome Guest, Not a member yet? Register Sign In |