Ajax and CodeIgniter |
[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/
[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.
|
Welcome Guest, Not a member yet? Register Sign In |