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

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

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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