Welcome Guest, Not a member yet? Register   Sign In
Prototype and Scriptacolous in CodeIgniter

Have you seen any good tutorials for Prototype and Scriptacolous in CodeIgniter?

You don't need any, just use your javascript in your views like you would any normal html document. When it comes to URL's it's the same concept as if CI wasn't there except your sending stuff to mysite/controller/method instead of mysite/somepage.php, if you can use it on a normal page it should work the same in CI with the exception that you can't pass values via GET.

[eluser]Sean Gates[/eluser]
Just throwing out my personal opinion: It doesn't matter what JS library you use with CodeIgniter. Therefore, I haven't seen any Prototype-specific tutorials that relate directly to CI.

I personally choose jQuery, but Prototype has some good things, too.

-- Sean

hmmm..... thanks kgill...

so where should i put the prototype.js and scriptacolous.js? in what folder? and how should i call it in my page?
< script type="text/javascript" src="/javascript/prototype.js" >

Thanks in advance... Big Grin

[eluser]Sean Gates[/eluser]
This is how I generally setup CI (someone else wrote this, though):


-- Sean

Update: Actually, this tutorial is much better: http://ifonlyiknewthat.com/codeigniter/s...deigniter/

Wow.... I have check the blog and its cool.....

THanks Guys.... I'll be posting more fore some of my CI NOOB question...


okay I created a jslibrary folder on the root of CI folder for the protoype.js, how can I call it from my view?

hahahah... I got it..... load the url helper... and echo the base_url()

Theme © iAndrew 2016 - Forum software by © MyBB