CodeIgniter Forums

Full Version: Javascript Class
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Patrick Maciel | @p4designer[/eluser]
Hello everbody, whats up? (if you not understand my english, sorry... I'm brazilian but I will try be clear/direct)

So...
I Know the 'Javascript Class' is not complete/stable, BUT, I want use.
I try this (in Controller):

Code:
$this->load->library('javascript', array('js_library_driver' => 'jquery', 'autoload' => TRUE));

And this, in view:
Code:
<!-- CodeIgniter - Javascript Library Class -->
    <?php echo $library_src;?>
    <?php echo $script_head;?>

Recieving the following error:
Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: library_src
Filename: default/header.php

Line Number: 30
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: script_head
Filename: default/header.php
Line Number: 31

What happend?
I know, CodeIgniter has not found these 2variables, but ... ok ... I do so that they load ... I need instantiate them in the controller, or ... ?

Help please.

Obs.: You recommend I use Javascript Class, or jquery 'pure'?

El Forum

[eluser]Patrick Maciel | @p4designer[/eluser]
Nobody help me? My friends.. please! Just a 'fast reply'... 1min of your time.

El Forum

[eluser]ramm[/eluser]
For now I'm just using the regular jQuery, this class needs a lot of documentation and testing.

El Forum

[eluser]Patrick Maciel | @p4designer[/eluser]
[quote author="ramm" date="1300826811"]For now I'm just using the regular jQuery, this class needs a lot of documentation and testing.[/quote]

Hmmm, thanks my friend for your answer.

I'm only using JQuery as well, but in some cases I think that having this integration would be really good.

But let's waiting, right?