Welcome Guest, Not a member yet? Register   Sign In
Need sample code with ajax
#1

[eluser]suba[/eluser]
Hi,
am developing new project using CI.
I did not use ajax in my project.
so please give some sample code, how to use ajax in my page on onclick event?
#2

[eluser]Milos Dakic[/eluser]
You will need to refer to a JavaScript or other AJAX related sites. This is a CodeIgniter forum that is mainly used for the CodeIgniter Framework.
Also have a search of the forums before you post, as this has been covered numerous times before.

Happy coding.
#3

[eluser]suba[/eluser]
Hi,
Actually in my old project , i used ajax function.But wthout CI
So I know ajax function without CI.

But in my new project am using CI framework.
Yesterday i upload ajax library in my system folder.

I used simple javascript function in my view page.
but is not working. That's why i asked sample ajax code With CI's ajax library.

My code
--------
<a href="[removed]void(0);">ajax->button_to_function('Greetigs', 'alert("Hello world!")' );?&gt;" > <img src="&lt;?=base_url().IMAGEPATH?&gt;delete1.gif" border="0" /></a>




Theme © iAndrew 2016 - Forum software by © MyBB