CodeIgniter Forums
Javascript Class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Javascript Class (/thread-39627.html)



Javascript Class - El Forum - 03-16-2011

[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'?


Javascript Class - El Forum - 03-22-2011

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


Javascript Class - El Forum - 03-22-2011

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


Javascript Class - El Forum - 03-22-2011

[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?