Jump to content
xisto Community
farsiscript

Ajax And Php question

Recommended Posts

Hi Dearsi want learn Ajax , i know PHP and mysql , i want include ajax interface into my php projects . but i can not find tutorial about ajax in pixel2life.com or google.i need good tut about begin ajax and how its work and more samples to useif you have good link about ajax plz post here And if you about ajax software kit plz post here thanks :)

Share this post


Link to post
Share on other sites

my advice: if you don't work in webdevelop/design, don't bother learning all technologies available :lol:...a better way, IMO, is to learn html/css + php (or another server-side language) and use the free ajax scripts available on the internet..some good links to get started:

to learn:
http://www.w3.org/2002/03/tutorials (choose from that list of links)
http://tizag.com/

ajax scripts: http://script.aculo.us/

just search google for more...the links I gave you are just the beginning :(

Share this post


Link to post
Share on other sites

Hi Dearsi want learn Ajax , i know PHP and mysql , i want include ajax interface into my php projects . but i can not find tutorial about ajax in pixel2life.com or google.
i need good tut about begin ajax and how its work and more samples to use
if you have good link about ajax plz post here
And if you about ajax software kit plz post here
thanks :lol:



if you wanna build a robus ajax application, i recmmend you to improve your javascript (EMACscript) and XML first, when you know how's that do, ok, ajax is just a piece of cake.

Share this post


Link to post
Share on other sites

Dear Saint_Michael this link http://www.alvit.de/handbook/ is not workin :blink: , i realy like your post and info , i think you are very full en in design and programming

i find one tut about load result in mysql by php and show with ajax in html file
? if you want post here to i search and put link here
Dear derickkoo where can i learn XML :wacko: make me a link thanks
thanks to all and dear Saint_Michael :X

Edited by farsiscript (see edit history)

Share this post


Link to post
Share on other sites

Ya it is very simple to understand this term AJAX.
Here is a script on it :

function AJAX(url,mode){	req = false	// branch for native XMLHttpRequest object	if(window.XMLHttpRequest) {		try {			req = new XMLHttpRequest();		} catch(e) {			req = false;		}	// branch for IE/Windows ActiveX version	} 	else if(window.ActiveXObject) {	   	try {				req = new ActiveXObject("Msxml2.XMLHTTP");		  } catch(e) {			try {				  req = new ActiveXObject("Microsoft.XMLHTTP");			} catch(e) {				  req = false;			}		}	}	function modeprocess(){		switch(mode){				case 1:				return checkresult;				break;				}	}		if(req) {		req.onreadystatechange = modeprocess();		req.open("GET", url, true);		req.send("");			} else {document.getElementById("uresult").innerHTML="Unable to retrieve data . Browser not compatible";	document.getElementById("cabutton").value="Check Availability";	}}

Use this function by giving the URL that willl return some data that you want.
It is really very simple to understand this.
I have given comments on this in the script.

Firstly it determines whether use IE stuff ActiveX or use through Mozilla or Opera.
Then it just uses the GET method and gets the result that would be outputted by the page specified in the URL.
Checkresult() is the function that processes the result got.

Also a site that has some codes:
http://dynamicdrive.com/dynamicindex17/indexb.html

Hope this helps

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.