Welcome Guest, Not a member yet? Register   Sign In
Ajax and CodeIgniter
#1

[eluser]lanzce[/eluser]
I am new here and I'm wondering if somebody could help me out with my problem in using ajax. The statement below is one of the problems I have:

echo $this->ajax->link_to_remote("Login", array('url' => '/login', 'update' => 'divblock'));

Please tell me what "Login" is for? The 'url' and 'update' are easy to understand but not "Login". Any help will be appreciated.


This statement is also found int the http://codeigniter.com/wiki/AJAX_for_CodeIgniter/
#2

[eluser]Jon Braud[/eluser]
The first parameter, "Login" in your case, is the anchor text.

<a href="blah">Login</a> if you will.

Hope that helps.
#3

[eluser]lanzce[/eluser]
I'll try that and see how it works.




Theme © iAndrew 2016 - Forum software by © MyBB