TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Javascript, AJAX, E4X (http://www.talkphp.com/javascript-ajax-e4x/)
-   -   questino for ajax (http://www.talkphp.com/javascript-ajax-e4x/2098-questino-ajax.html)

sarmenhb 01-25-2008 09:43 PM

questino for ajax
 
how much javascript do i need to know in order to learn ajax?

i understand the basics like

declaring variables
functions
arrays
if,while,for,foreach loops

and xml shouldnt be too hard to learn.

Nor 01-25-2008 09:46 PM

you need to know basic knowledge of javascript.

Ajax is basically loading a page into a variable, all you need to do is know how to use that variable in to get certain things off the page.

Like one thing you might need to know is:
document.createElement

To store the loaded page, and use js to loop through what ever your trying to grab.

Rendair 01-26-2008 10:25 AM

Ajax is pretty easy to learn once you learn how to do server requests.

Ajax Tutorial - Tutorial

Aaron 01-26-2008 09:02 PM

You don't need Javascript to do AJAX, just like you don't need to know XML. You can do basic AJAX functions with just one language. The only problem is, the AJAX stuff is the most advanced part of that language :3.

Wildhoney 01-27-2008 02:51 AM

Prototype makes AJAX very simple!

flyingbuddha 02-07-2008 04:30 PM

I'm a jQuery man (jQuery: The Write Less, Do More, JavaScript Library)

Example of hitting a script with jQuery:

PHP Code:

<?php
// my-script.php
print_r($_POST);
?>

Code:

$.post('my-script.php',{x:1,y:2,z:3},function(response){
    alert(response);
});


xenon 02-07-2008 10:16 PM

I can't stand jQuery. I find its syntax to be very gross. Prototype, on the other hand, is very simple and pretty straight-forward. And to answer the initial question, Ajax IS javascript mainly, so...I'd say it would help having a good knowledge of JS before delving into Ajax.


All times are GMT. The time now is 07:45 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0