ajax libraries for php

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

ajax libraries for php

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

i am not understanding something here...

if they all require js knowledge, then what is the big advantage of using them?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

uhh... php libraries require you know a little php... kinda the same thing bud.
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

that is a sweet library
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

MrPotatoes wrote:that is a sweet library
have you seen this?
http://script.aculo.us/
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post 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 ;)
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Post 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
Last edited by panic! on Mon Aug 07, 2006 5:05 pm, edited 1 time in total.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
Post Reply