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

[eluser]napz[/eluser]
Have you seen any good tutorials for Prototype and Scriptacolous in CodeIgniter?
#2

[eluser]kgill[/eluser]
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.
#3

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

[eluser]napz[/eluser]
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
#5

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

http://jrtashjian.com/blog/setting-up-codeigniter/

-- Sean

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

[eluser]napz[/eluser]
Wow.... I have check the blog and its cool.....

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

hahahha...
#7

[eluser]napz[/eluser]
okay I created a jslibrary folder on the root of CI folder for the protoype.js, how can I call it from my view?
#8

[eluser]napz[/eluser]
hahahah... I got it..... load the url helper... and echo the base_url()




Theme © iAndrew 2016 - Forum software by © MyBB