Page 1 of 1

ajax libraries for php

Posted: Mon Aug 07, 2006 1:15 pm
by pedrotuga
ok...
i never really got into javascript and i am not planning to.

but now ajax is pumping up js a lot...

i thought... mmmm maybe some pear pack or something could help me staying away from javascript...

i found a few... but almost all of them need some basic knowledge in javascript, wich i dont have...

this one looks kind of cool.... and so far it looks like the only one i could be able to use

http://www.metz.se/tinyajax/index.php

do you use any similar thing?
wich one? how? does it save you a lot javascript coding?

Posted: Mon Aug 07, 2006 1:22 pm
by Chris Corbyn
They all require a knowledge of JS. AJAX by it's very nature requires knowledge of JS. Most of the AJAX you'll write is client-side... the server side stuff is the same as what you already do.

The two major ones are SAjax and XAjax.

Posted: Mon Aug 07, 2006 1:35 pm
by pedrotuga
i am not understanding something here...

if they all require js knowledge, then what is the big advantage of using them?

Posted: Mon Aug 07, 2006 1:38 pm
by Luke
uhh... php libraries require you know a little php... kinda the same thing bud.

Posted: Mon Aug 07, 2006 2:01 pm
by MrPotatoes
that is a sweet library

Posted: Mon Aug 07, 2006 2:05 pm
by Luke
MrPotatoes wrote:that is a sweet library
have you seen this?
http://script.aculo.us/

Posted: Mon Aug 07, 2006 2:47 pm
by MrPotatoes
that si very sweet

and with a sweet library. i'm totally going to use this one

only thing is that i'd have to make a PHP Interface for it and speed it up some. but javascript isn't the fastest thing on the planet to begin with so i guess some of it can't be helped ;)

Posted: Mon Aug 07, 2006 4:57 pm
by panic!
You should probably think about getting a basic grasp of JS, authough by it's nature it's not all the great, it's always very useful (in my experience at least)... my job title is: PHP developer, but I probably spend 33% of my time coding JS.

Posted: Mon Aug 07, 2006 4:59 pm
by Chris Corbyn
panic! wrote:You should probably think about getting a basic grasp of JS, authough by it's nature it's not all the great, it's always very useful (in my experience at least)... my job title is: PHP developer, but I probably spend 33% of my time coding JS.
What are you talking about? JS is a beautiful language... it's just that heaps of people don't use it correctly.

Posted: Mon Aug 07, 2006 5:02 pm
by panic!
Well, just like HTML it's self, it's just not implimented very well yet, it's better than 5 years ago where you'd have to write twp totally seperate chunks of code all the time for 'the' two browsers.

getElementById is a godsend...and innerHTML becoming standard.

edit: two not too

Posted: Mon Aug 07, 2006 5:04 pm
by Christopher
panic! wrote:You should probably think about getting a basic grasp of JS, authough by it's nature it's not all the great, it's always very useful (in my experience at least)... my job title is: PHP developer, but I probably spend 33% of my time coding JS.
I am a PHP programmer and would probably spend 80% of my time coding Javascript if it wasn't for libraries like Prototype.

That is a nice 'tiny' JS library, but I am not so wild about too much PHP generation of Javascript simply because I find that clean controller interfaces and pushing some of the MVC into Javascript does the same thing but more cleanly in my opinion. No special code -- just plain old request/response stuff.