Welcome Guest, Not a member yet? Register   Sign In
Using CI 2's javascript/jquery lib
#1

[eluser]Roobiz[/eluser]
Does anyone try to use the jquery lib in CI 2?


I follow the corresponding doc's in user guide but it's not seems to work.

User guide:
<code>
$this->load->library('jquery');
</code>

doesn't work but
<code>
$this->load->library('javascript', array('js_library_driver' => 'jquery', 'autoload' => TRUE));
</code>
yes.

After that
<code>
&lt;?php echo $jquery_script;?&gt;
&lt;?php echo $script_head;?&gt;
</code>

Like in guide doesn't work, var aren't init. I have tried to find a way to initilize it but don't find anything.


The jquery constructor doesn't have the same name as the class so it never be call. I replace it, and it's now call;

But... many errors remains...



Since 1 year, no major release for CI and the best thing (for me, js / jquery lib) is not ready to use Sad ... What Ellislab do ? CI is going dead or what ?


Messages In This Thread
Using CI 2's javascript/jquery lib - by El Forum - 10-22-2010, 02:36 AM
Using CI 2's javascript/jquery lib - by El Forum - 10-22-2010, 02:43 AM
Using CI 2's javascript/jquery lib - by El Forum - 10-22-2010, 02:47 AM
Using CI 2's javascript/jquery lib - by El Forum - 10-22-2010, 04:01 AM
Using CI 2's javascript/jquery lib - by El Forum - 10-22-2010, 08:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB