Hello everyone,
Could someone please post some cross-browser compatiable ajax code that will allow me to send a javascript variable to a php page (WITHOUT using jQuery). I want it to look like this -
Code:<script type="text/javascript"> function ajaxfunction(element) { //ajaxystuff to pass element } </script> <tagname onclick="ajaxfunction('pass me');
Could you also please post a second code (an adaption of the first) that can recieve a respone from the page, like this -
I also need to know to assign the information sent to the php page, as a php variable.Code:<script type="text/javascript"> function ajaxfunction(element) { //ajaxystuff to pass and recieve variable element and the response. var ajaxrespone = "ajaxystuff"; } </script> <tagname onclick="ajaxfunction('pass me');
Any help would be Terrific!!!!!!!!!
Keyboard1333








Bookmarks