Welcome Guest, Not a member yet? Register   Sign In
Jquery Autoloader Helper
#1

[eluser]Unknown[/eluser]
I just started using codigniter I created a view helper which downloads updated version of jquery from google cdn and you can set the versions of jquery and jqueryui with this helper.


Installation: [/b]

Download the file and placed it into application helper folder.

Load the helper
Code:
$this->load->helper('jquery');

In view file type
Code:
echo jquery();
This will downloads the jquery framework and for Jquery UI type
Code:
echo jqueryui();
You can set the version as well
Code:
echo jquery('1.4');


For Jquery UI
Code:
echo jqueryui('1.8.1');

That's really




Theme © iAndrew 2016 - Forum software by © MyBB