This is where it all comes from, the ability to send and recieve data without reloading the page. First, you need to create an object though,
xmlhttp.send passes variables to the script that you are calling, you'll notice that it passes them in almost exactly the same way as a url bar minus the '?'.
The handler function gets called every time that xmlhttp changes state. We have the if statement so that it will only execute when readyState==4 (4 is completed). The last statement of course retreives the data from the xmlhttp object. If you are getting most types of data you should use the responseText property, for actual XML data use the responseXML property. The last statement just closes the socket for later use.
Using this as a basic model you can make an entire website live if you want to, or just find something fun to do with it.
how to access the posted data in file.php??
i tried like this
but no luck...
hi i jst want to know can we redirect the user to internet or intranet page based on their internet connectivity
proced in detail
i have two type of website hosted in same server one is for internet user and other is for intranet user i have to take the user to internet page if he is accessing the site with internet connection r else he have to go to intranet site (people who dosen't have internet connection )
|All times are GMT +5.5. The time now is 00:20.|