Forum Moderators: coopster

Message Too Old, No Replies

PHP JavaScript Framework

Looking for a JavaScript, AJAX framework

         

redhatlab

10:48 pm on Mar 19, 2010 (gmt 0)

10+ Year Member



Hi,

I am starting a new project and I will love to use some JavaScript/ajax to make it more user friendly. I really like how other sites work.

Does anyone know of a good JavaScript framework I can easily integrate in PHP to accomplish this?

[edited by: jatar_k at 12:59 pm (utc) on Mar 22, 2010]
[edit reason] no urls thanks [/edit]

Tommybs

8:07 pm on Mar 21, 2010 (gmt 0)

10+ Year Member



Well JavaScript will always be separate to the php in a way as ones a server side language and ones a client side language. But I personally find jQuery to be an excellent javascript library and it should offer the functionality you need. For what it's worth I think that's what mint use.

jatar_k

1:01 pm on Mar 22, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



jquery, mootools, dojo

all are just fine, integrating with php isn't really much of a consideration as Tommybs mentions

redhatlab

4:01 am on Mar 27, 2010 (gmt 0)

10+ Year Member



Thank you all for the responses.

I have one more question then, what is then the benefit of using any of the above mention javascript framework over just coding your own ajax code using the regular javascript code?

Anyango

5:02 am on Mar 27, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First Up, they provide you with many built in functionalities with professionaly optimized code, that helps you achieve your goals by writing very little code yourself. Just one of the many benefits.

Tommybs

9:42 am on Mar 27, 2010 (gmt 0)

10+ Year Member



Also on top of what was said above, they eliminate cross browser inconsistencies. For instance with jquery you can make an Ajax request using a line as simple as $.get(page, params, function(data)) that one line code takes care of initializing the Ajax request, passing in parameters and assigning a callback function. Obviosuly there's q bit more code needed in the callback but it saves you have to address many cross browser issues with creating the request object for starters. I'd highly recommend using a JavaScript library, but on the flip side it is worth knowing what the code is actually doing still.