• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Javascript Class

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


Messages In This Thread
Javascript Class - by El Forum - 03-16-2011, 08:20 AM
Javascript Class - by El Forum - 03-22-2011, 04:09 AM
Javascript Class - by El Forum - 03-22-2011, 09:46 AM
Javascript Class - by El Forum - 03-22-2011, 10:33 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.