Let’s say I have a PHP page and inside that PHP page I just have <?php echo "Hello World!"; ?> and I want to use JavaScript (preferabbly jQuery) and AJAX to CALL that php page and return it’s output (which would be “Hello World!”)
How is this done?
The
datawill contain the text from the page, do what you want with it. In this case, set the#responseAreatext to contain it.