TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-25-2008, 09:43 PM   #1 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default 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.
__________________
no signature set
sarmenhb is offline  
Reply With Quote
Old 01-25-2008, 09:46 PM   #2 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

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.
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 01-26-2008, 10:25 AM   #3 (permalink)
The Addict
Upcoming Programmer Top Contributor 
 
Rendair's Avatar
 
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
Rendair is on a distinguished road
Default

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

Ajax Tutorial - Tutorial
__________________
www.jooney.co.uk - the online portfolio
Send a message via MSN to Rendair
Rendair is offline  
Reply With Quote
Old 01-26-2008, 09:02 PM   #4 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

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.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Old 01-27-2008, 02:51 AM   #5 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Prototype makes AJAX very simple!
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 02-07-2008, 04:30 PM   #6 (permalink)
The Contributor
 
flyingbuddha's Avatar
 
Join Date: Jan 2008
Location: Birmingham, UK
Posts: 60
Thanks: 10
flyingbuddha is on a distinguished road
Default

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);
});
__________________
Pro. Geek
http://www.mikeholloway.co.uk
flyingbuddha is offline  
Reply With Quote
Old 02-07-2008, 10:16 PM   #7 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

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.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:09 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design